Difference between revisions of "Redis Key eviction"
Jump to navigation
Jump to search
(Created page with " * {{redis.conf}}") |
|||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
+ | <code>[[redis.conf]]</code> | ||
+ | .../... | ||
+ | # volatile-lru -> Evict using approximated LRU, only keys with an expire set. | ||
+ | # allkeys-lru -> Evict any key using approximated LRU. | ||
+ | # volatile-lfu -> Evict using approximated LFU, only keys with an expire set. | ||
+ | # allkeys-lfu -> Evict any key using approximated LFU. | ||
+ | # volatile-random -> Remove a random key having an expire set. | ||
+ | # allkeys-random -> Remove a random key, any key. | ||
+ | # volatile-ttl -> Remove the key with the nearest expire time (minor TTL) | ||
+ | # noeviction -> Don't evict anything, just return an error on write operations. | ||
+ | .../... | ||
+ | == Related == | ||
+ | * [[Elasticache eviction policy]] | ||
+ | |||
+ | == See also == | ||
* {{redis.conf}} | * {{redis.conf}} | ||
+ | |||
+ | [[Category:Redis]] |
Latest revision as of 15:06, 12 December 2023
.../... # volatile-lru -> Evict using approximated LRU, only keys with an expire set. # allkeys-lru -> Evict any key using approximated LRU. # volatile-lfu -> Evict using approximated LFU, only keys with an expire set. # allkeys-lfu -> Evict any key using approximated LFU. # volatile-random -> Remove a random key having an expire set. # allkeys-random -> Remove a random key, any key. # volatile-ttl -> Remove the key with the nearest expire time (minor TTL) # noeviction -> Don't evict anything, just return an error on write operations. .../...
Related[edit]
See also[edit]
Advertising: