-
1. Re: Set MaxAgeSeconds for subnodes of region
ben.wang Jun 8, 2006 8:06 AM (in response to sgielen)In eviction policy configuration, you can have nested regions like:
Region I:
/customer
Region II;
/customers/children
and they can have different policy applied to it. Please check the TreeCache documentation (Eviction section) for details. -
2. Re: Set MaxAgeSeconds for subnodes of region
sgielen Jun 21, 2006 1:00 AM (in response to sgielen)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:
At start-up:
/customer
Client adds subnode at run-time:
/customer/cust XYZ
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? -
3. Re: Set MaxAgeSeconds for subnodes of region
sgielen Jun 21, 2006 8:18 PM (in response to sgielen)Found it!
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!