You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
hello,
I have some confusion when using spring-cache
For example, when I use method's caching, I hope the results can be cached and the cache expires regularly. Now @Cacheable doesn't seem to support it. If I want to do this, I need to write some code. I don't know why doesn't Spring support cache expiration? It would be even better if it could support scheduled refresh, which could help me reduce some development time and avoid introducing other additional dependencies
The text was updated successfully, but these errors were encountered:
This is covered in the reference guide. The cache abstraction isn't an abstraction on how the cache can be configured, it wouldn't be wise to try to do that anyway.
If you need expiry on your cache, choose a cache provider that supports this feature and configure it accordingly.
hello,
I have some confusion when using
spring-cache
For example, when I use method's caching, I hope the results can be cached and the cache expires regularly. Now @Cacheable doesn't seem to support it. If I want to do this, I need to write some code. I don't know why doesn't Spring support cache expiration? It would be even better if it could support scheduled refresh, which could help me reduce some development time and avoid introducing other additional dependencies
The text was updated successfully, but these errors were encountered: