EasyCaching icon indicating copy to clipboard operation
EasyCaching copied to clipboard

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

Open garfage opened this issue 1 year ago • 2 comments

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

garfage avatar Feb 26 '24 02:02 garfage

@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 avatar Apr 14 '24 01:04 catcherwong

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

garfage avatar May 31 '24 02:05 garfage