ptupitsyn commented on issue #11775:
URL: https://github.com/apache/ignite/issues/11775#issuecomment-2563384076

   You can do that in Ignite
   
   > You can also change or set Expiry Policy for individual cache operations. 
This policy is used for each operation invoked on the returned cache instance.
   
   ```java
   CacheConfiguration<Integer, String> cacheCfg = new 
CacheConfiguration<Integer, String>("myCache");
   
   ignite.createCache(cacheCfg);
   
   IgniteCache cache = ignite.cache("myCache")
           .withExpiryPolicy(new CreatedExpiryPolicy(new 
Duration(TimeUnit.MINUTES, 5)));
   
   // Only the entries added through this IgniteCache reference will expire 
after 5 minutes:
   cache.put(1, "first value");
   ```
   
   
   
https://ignite.apache.org/docs/latest/configuring-caches/expiry-policies#configuration


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscr...@ignite.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to