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

Add ability to cache longer than 30 days

harrydhillon43 opened this issue · comments

We wanted to cache certain items for longer than 30 days. In our case, requirements were cache for 40 days.

Would it be possible to remove this validation or bump the limit to 60?

if (expiration == null || expiration.toDays() > 30) {
     throw new IllegalStateException("Invalid expiration. It should not be null or greater than 30 days.");
}

@harrydhillon43 Thanks for feedback. I'll let you know when the SNAPSHOT version is ready, so you can give it a try

@harrydhillon43 The support for caching more than 30 days is available with 2.5.0-SNAPSHOT version. You can give it a try and check if it works for you, until we release the final version.

This version is available at the snapshot Maven repository: https://oss.sonatype.org/content/repositories/snapshots

Supported with release version 2.5.0