Guillermo Vasconcelos
Guillermo Vasconcelos

Reputation: 1701

Hibernate - maxElementsOnDisk from EHCache to TreeCache

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.

Thanks

Upvotes: 1

Views: 934

Answers (2)

Guillermo Vasconcelos
Guillermo Vasconcelos

Reputation: 1701

In the version I am working on (JBossCache 1.4.1), it looks like it is not possible to configure this parameter.

Upvotes: 0

Mat Mannion
Mat Mannion

Reputation: 3365

This page seems to imply that the correct configuration element is:

<attribute name="MaxCapacity">20000</attribute>

However, I've only ever used EHCache myself.

Upvotes: 2

Related Questions