<p>I'm migrating a Hibernate application's cache from EHCache to JBoss TreeCache.
I'm trying to find how to configure the equivalent to maxElementsOnDisk to limit the cache size on disk, but I couldn't find anything similar to configure in a FileCacheLoader with passivation activated.</p>

<p>Thanks</p>

[{'answer_id': 61394, 'author': 'Mat Mannion', 'author_id': 6282, 'author_profile': 'https://Stackoverflow.com/users/6282', 'pm_score': 2, 'selected': False, 'text': '<p><a href="http://www.junlu.com/msg/179368.html" rel="nofollow noreferrer">This page</a> seems to imply that the correct configuration element is:</p>\n\n<pre><code>&lt;attribute name="MaxCapacity">20000&lt;/attribute></code></pre>\n\n<p>However, I\'ve only ever used EHCache myself.</p>\n'}, {'answer_id': 101498, 'author': 'Guillermo Vasconcelos', 'author_id': 5425, 'author_profile': 'https://Stackoverflow.com/users/5425', 'pm_score': 1, 'selected': True, 'text': '<p>In the version I am working on (JBossCache 1.4.1), it looks like it is not possible to configure this parameter.</p>\n'}]
['https://Stackoverflow.com/questions/59299', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/5425/']