<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>

This page
seems to imply that the correct configuration element is:
```
```
<attribute name="MaxCapacity">20000</attribute>
```
```
However, I've only ever used EHCache myself.