Add ability to cache longer than 30 days
harrydhillon43 opened this issue · 3 comments
harrydhillon43 commented
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.");
}
igorbolic commented
@harrydhillon43 Thanks for feedback. I'll let you know when the SNAPSHOT version is ready, so you can give it a try
igorbolic commented
@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
igorbolic commented
Supported with release version 2.5.0