Hi Kevin,

First of all please properly subscribe to the user list (this way we will
not have to
manually approve your emails). All you need to do is send an email to “
[email protected]” and follow simple instructions in the
reply.

> cache.withExpiryPolicy(new AccessedExpiryPolicy(new Duration(SECONDS,
> 1))).get("X") 
> // would the "X" entry now have a expiry policy globally? 

Yes, it will be activated for "X".

> // after one second 
> cache.get("X") // without withExpiryPolicy 
> // would this be null? 

Yes, it will.

> cache.withExpiryPolicy(new EternalExpiryPolicy()).get("X") 
> // does this cancel the expiry policy of "X" globally, assuming "X" is
> still there? 

It should override the previously set policy for "X".

> Would this be a good way of setting/cancelling expiry policies for certain
> entries in a cache?

Yes, I don't see how it can be done the other way.

Regards,
Denis




--
View this message in context: 
http://apache-ignite-users.70518.x6.nabble.com/Does-IgniteCache-withExpiryPolicy-affect-existing-cache-entries-tp1870p1890.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.

Reply via email to