Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EasyCaching cache get expired in 2 weeks when service traffic is low #520

Open
garfage opened this issue Feb 26, 2024 · 2 comments
Open
Labels

Comments

@garfage
Copy link

garfage commented Feb 26, 2024

Description

EasyCaching cache get expired in 2 weeks when service traffic is low

Steps to Reproduce

  1. 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)
  2. Cache refresh every hour by using background cron job
  3. Deploy the service to Kubernetes which is low traffic
  4. 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

@catcherwong
Copy link
Member

@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?

@garfage
Copy link
Author

garfage commented May 31, 2024

@catcherwong The cache set expire time is one year later, it should not get expired after 14 days.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants