ignite-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lin" ...@linlyu.com>
Subject Can I set an expiry policy for some specify entry?
Date Tue, 01 Dec 2015 07:47:45 GMT

I have read the docs on jcache expiry policies, the policy  will be used for each operation
invoked on the returned cache instance.

IgniteCache<Object, Object> cache = cache.withExpiryPolicy(     new CreatedExpiryPolicy(new
Duration(TimeUnit.SECONDS, 5)));

and searched the nabble faq and found 

As I know, the expiry policy is worked for all the entries in the cache. I would like to specify
different expiry policies for some different entries,
How can I do?

Thanks for you help.


View raw message