Region based "marshalling" is not what you need, you just need to define separate regions. One for each data type which has unique eviction requirements. You can then define what these eviction requirements are on a per-region basis. The JBoss Cache User Guide has details on this, along with examples.
Hi, this article is interesting but i am using the POJO Cache and the documentation
Another way to support multiple regions in eviction is to use region-based
marshalling. See the "Architecture" chapter in the JBoss Cache User Guide for
more information on region-based marshalling. When the Cache uses region-based
marshalling, POJO Cache will store internal node data on the region that is specified.
This allows for a more flexible eviction policy.
And I have no idea how I could configure this region based marshalling to extend my eviction policy.