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
Post a Comment