Yes, it would work. Just give a try.

--

Denis

On Wednesday, December 30, 2015, kevin <[email protected]> wrote:

> Thanks Denis for pointing me to EVT_CACHE_OBJECT_EXPIRED.
>
> But let me expand, what I want is to have multiple entries expire in one
> transaction.
>
> Example:
> IgniteCache cache = ignite.cache("testCache").withExpiryPolicy(expiry);
>
> try (ignite.transactions.txStart()) {
>     // I want these 10 entries to expire atomically
>     for (int i = 0; i < 10; i++)
>         cache.put(String.valueOf(i), i);
> }
>
> // Eg. if I do something like
> cache.query(...where key < 10...).getAll();
> // I want either all of the entries, or none of them
>
> Would the expiry policy still work for this?
>
>
>
> --
> View this message in context:
> http://apache-ignite-users.70518.x6.nabble.com/Is-there-a-hook-on-cache-entry-expiry-tp2344p2357.html
> Sent from the Apache Ignite Users mailing list archive at Nabble.com.
>

Reply via email to