EasyCaching
EasyCaching copied to clipboard
EasyCaching cache get expired in 2 weeks when service traffic is low
Description
EasyCaching cache get expired in 2 weeks when service traffic is low
Steps to Reproduce
- Set in-memory cache A with expired time in one year (easyCaching version, 1.4.1, 1.9.2, both of them has this issue)
- Cache refresh every hour by using background cron job
- Deploy the service to Kubernetes which is low traffic
- After 14 days later, the cache expired
Expected behavior: Cache should never get expired
Actual behavior: Cache expired in 14 days after deployment, get back to normal after redeploy
@garfage Thanks for your interest in this project.
Do you mean the in-memory cache should not expired after the deployment of this service?
Or the service runs well, but after 14 days, the in-memory cache get expired?
@catcherwong The cache set expire time is one year later, it should not get expired after 14 days.