ignite-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Amish Munshi <amishmun...@gmail.com>
Subject Re: Caching timeouts
Date Sun, 31 Dec 2017 16:16:12 GMT
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



-- 
Amish K. Munshi.

Mime
View raw message