Redis - Loss of old data -


we using redis storing cart data. see of carts older month aren't available longer. assume data have been persisted , should available time. there settings must review check why of old data getting deleted? there no ttl set when storing data.

maybe reaches redis maxmemory, take @ 2 config in redis.conf maxmemory , maxmemory-policy

when maxmemory reached, redis follows action specified maxmemory-policy allkeys-lru or noeviction. if policy lru, older data dropped.

as redis docs said:

noeviction: return errors when memory limit reached , client trying execute commands result in more memory used (most write commands, del , few more exceptions).

allkeys-lru: evict keys trying remove less used (lru) keys first, in order make space new data added.


Comments

Popular posts from this blog

What is happening when Matlab is starting a "parallel pool"? -

angular - DownloadURL return null in below code -

php - Cannot override Laravel Spark authentication with own implementation -