Does Redis support sliding expiration natively? If not, what is the best workaround?
Thanks, Pavan.
Does Redis support sliding expiration natively? If not, what is the best workaround?
Thanks, Pavan.
If "Sliding Expiration" means "Key Eviction" then you have an answer here.
The work around will be to use Redisson Library which will allow you to set maxIdleTimeout. This will slide the Expiration. For more reference https://redisson.org/glossary/spring-cache.html