that stores data so that future requests for that data can be served faster The Architecture of Computer Hardware and Systems Software, An Information Technology Approach ~ Irv Englander
24) The LFU timer stores the timestamp with the epoch set to the time the server was started. That way we're able to store it in only 22 bits. The initial precision was 10 seconds, but it was increased to 1 second later, when the 2 extra bits were added.
at 20:22:21 GMT+1 # MAXMEMORY POLICY: how Redis will select what to remove when maxmemory # is reached? You can select among five behaviors: # # volatile-lru -> remove the key with an expire set using an LRU algorithm # allkeys-lru -> remove any key accordingly to the LRU algorithm # volatile-random -> remove a random key with an expire set # allkeys->random -> remove a random key, any key # volatile-ttl -> remove the key with the nearest expire time (minor TTL) # # maxmemory-policy volatile-lru
implemented October 2010 LRU implemented November 2010 noeviction policy added v 2.2 alpha 3 v 2.2 alpha 5 March 2014 - LRU eviction pool - maxmemory-samples = 5 - LRU field changed to 24 bits (v 2.8.8) v 3.0 Default policy noeviction v 2.8.8
implemented October 2010 LRU implemented November 2010 noeviction policy added July 2016 Cross-database eviction March 2014 - LRU eviction pool - maxmemory-samples = 5 - LRU field changed to 24 bits (v 2.8.8) v 3.0 Default policy noeviction v 2.8.8 v 2.2 alpha 3 v 2.2 alpha 5
the maximum probability of being accessed in the future, that are the keys *most frequently accessed*, not the ones with the latest access!" Salvatore Sanfilipo, Blog post
the epoch set to when the server was started, in minutes) 16 bits Last decrease time 8 bits LOG C lfu-decay-time The counter decay time, in minutes, that must elapse in order for the key counter to be divided by two (or decremented if it has a value less <= 10). Default value is 1.
implemented October 2010 LRU implemented November 2010 noeviction policy added July 2016 Cross-database eviction March 2014 - LRU eviction pool - maxmemory-samples = 5 - LRU field changed to 24 bits (v 2.8.8) v 3.0 Default policy noeviction v 2.8.8 July 2014 - LFU Implementation - Volatile-ttl uses the pool v 4.0 v 2.2 alpha 3 v 2.2 alpha 5