I'm moving from the EHCache provider to the JBoss TreeCache provider as I'm now running in a clustered environment. With EHCache a class would be configured like the following sample:
Code:
<cache name="com.acme.content.Content"
maxElementsInMemory="200"
eternal="false"
timeToIdleSeconds="86400"
timeToLiveSeconds="0"
overflowToDisk="false"
/>
<cache name="com.acme.content.Content.restrictToRoles"
maxElementsInMemory="500"
eternal="false"
timeToIdleSeconds="86400"
timeToLiveSeconds="0"
overflowToDisk="false"
/>
This would cache 'Content' as well as the assocation 'restrictToRoles'.
Using the examples from HIA the region configuration for 'Content' should be something like:
Code:
<region name="/com/acme/content/Content">
<attribute name="maxNodes">200</attribute>
<attribute name="timeToLiveSeconds">86400</attribute>
<attribute name="maxAgeSeconds">0</attribute>
</region>
How though should the assication 'restrictToRoles' be configured? Is the following correct?
Code:
<region name="/com/walkaway/content/Content.restrictToRoles">
<attribute name="maxNodes">500</attribute>
<attribute name="timeToLiveSeconds">86400</attribute>
<attribute name="maxAgeSeconds">0</attribute>
</region>