In eviction policy configuration, you can have nested regions like:
and they can have different policy applied to it. Please check the TreeCache documentation (Eviction section) for details.
I read all the documentation and examples, but am still stuck.
I understand your reply for scenarios where the subnodes are fixed and hence can be configured in a region. But what if the subnodes are created at run-time and can be named anything. As I understand we can't create regions at run-time and configure new subnodes that way.
To use my example again:
Client adds subnode at run-time:
Now I need node 'cust XYZ' to expire after a set period without losing the 'customer' branch (so end up with start-up tree again).
Is that possible?
Problem was that I stored the customer subnodes as key-value pairs. Now that I stored them as nodes the eviction policy keeps track of the subnodes. Doh!