ignite-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mikael <mikael-arons...@telia.com>
Subject Re: Caching timeouts
Date Sun, 31 Dec 2017 16:29:08 GMT
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
> <andrey.mashenkov@gmail.com> 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 <amishmunshi@gmail.com> 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
>
>


Mime
View raw message