meaning of eviction in redis

206 views
Skip to first unread message

Parveen Jain

unread,
Apr 6, 2015, 11:17:31 PM4/6/15
to redi...@googlegroups.com
What is the meaning of key eviction in redis(http://redis.io/topics/lru-cache) ? Does it mean that keys will be deleted or does it mean that the keys will go to disk(being removed from main memory) ?
If its meant for disk save(removing it from main memory), is there a specific command to achieve the same ?

Regards,
Parveen Jain

Greg Andrews

unread,
Apr 6, 2015, 11:52:23 PM4/6/15
to redi...@googlegroups.com
Evict means redis-server will remove keys from memory.

The redis-server code discused on this list does not move keys to disk and move them back again.  The keys in memory are the only keys that exist.  (the code will save keys to disk only for crash recovery purposes)

A few people have forked the code and made revisions to move keys to/from memory, but that's not what the documentation at http://redis.io/ is describing.

  -Greg

--
You received this message because you are subscribed to the Google Groups "Redis DB" group.
To unsubscribe from this group and stop receiving emails from it, send an email to redis-db+u...@googlegroups.com.
To post to this group, send email to redi...@googlegroups.com.
Visit this group at http://groups.google.com/group/redis-db.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages