It does but you can use it to create multiple instances with different policies that work on the same cache, if you can live with a few different timeouts that should work fine, I am not sure about the overhead if you call .withExpiryPolicy each time you write to the cache though.

Mikael

Den 2017-12-31 kl. 17:16, skrev Amish Munshi:
Thanks Andrey. This seems like it will set timeout for entire cache.
Is there a way to do set timeouts for individual key/value pair?

Thanks,
Amish.


On Sun, Dec 31, 2017 at 8:09 AM, Andrey Mashenkov
<[email protected]> wrote:
Hi Amish,

Yes, try to use withExpiryPolicy cache projection for this [1].

IgniteCache projection = igniteCache.withExpiryPolicy(policy);


[1] https://apacheignite.readme.io/docs/expiry-policies

On Sun, Dec 31, 2017 at 5:55 PM, Amish Munshi <[email protected]> wrote:
I have a requirement to cache individual key value pairs with
different timeouts values. Is it possible to have different timeouts
for individual key value pairs in ignite?


--
Amish K. Munshi.



--
Best regards,
Andrey V. Mashenkov



Reply via email to