Skip to content

Setup expired time for different cacheName #580

Answered by ben-manes
baoke344 asked this question in Q&A
Discussion options

You must be logged in to vote

I assume this is for Spring? If so, they'll be your experts on best practices.

In this tutorial video, a user was able to have independent configurations per cache name in the properties file. That might depend on the Spring Boot version being used, though, as they recently added a registerCustomCache method.

An alternative integration supports this feature directly.

The expiryAfter(expiry) idea probably won't work because this library does not have a concept of cache names. That is left to the integration framework, e.g. Spring, Micronaut, Quarkus, who provide the application framework.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@baoke344
Comment options

@yellowbigbird83
Comment options

@ben-manes
Comment options

Answer selected by ben-manes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants