Documentation - Redise Pack

A guide to Redise Pack installation, operation and administration

open all | close all

Database eviction policy

The eviction policy designates a data eviction method to use when the database size reaches its limit. You can select any of the following:

  • noeviction: returns an error if the memory limit has been reached when trying to insert more data
  • allkeys-lru: evicts the least recently used keys out of all keys
  • allkeys-random: randomly evicts keys out of all keys
  • volatile-lru: evicts the least recently used keys out of all keys with an “expire” field set
  • volatile-ttl: evicts the shortest time-to-live and least recently used keys out of all keys with an “expire” field set
  • volatile-random: randomly evicts keys with an “expire” field set