sixhours-team / memcached-spring-boot

Library that provides support for auto-configuration of Memcached cache in a Spring Boot application.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Custom Expiration for different objects

marwenhammami opened this issue · comments

Sometimes or most of the times, setting a global expiration cache is not required, it would be very nice to have the option to set different expiration times for different cache names.
example :

CacheConfiguration cacheConfiguration = new CacheConfiguration();
cacheConfiguration.put("name1", Expiration.byDeltaSeconds(86400));
cacheConfiguration.put("name2", Expiration.byDeltaSeconds(600));

Thanks @marwenhammami. We are working on this feature.
It should be available soon.

Thank you :D