当前位置:网站首页>Redis 过期淘汰机制
Redis 过期淘汰机制
2022-07-03 05:08:00 【amateur12】
定时删除--->惰性删除--->定期删除
针对定期删除有8种数据淘汰策略
LRU算法(最近最少使用)
volatile-lru:从已设置过期时间的数据集中挑选最近最少使用的数据淘汰
allkeys-lru:当内存不足以容纳新写入数据时移除最近最少使用的key
LFU算法(使用频次最少)
volatile-lfu:从已设置过期时间的数据集中挑选使用频次最少的数据淘汰
allkeys-lfu:当内存不足以容纳新写入数据时移除使用频次最少的key
allkeys-random:从数据集中任意选择数据淘汰
volatile-random:从已设置过期时间的数据集中任意选择数据淘汰
volatile-ttl:从已设置过期时间的数据集中挑选将要过期的数据淘汰
no-enviction:当内存不足以容纳新写入数据时,新写入操作会报错
边栏推荐
- Force GCC to compile 32-bit programs on 64 bit platform
- The principle is simple, but I don't know how to use it? Understand "contemporaneous group model" in one article
- 1095 cars on campus (30 points)
- Go language interface learning notes
- 最大连续子段和(动态规划,递归,递推)
- Literature reading_ Research on the usefulness identification of tourism online comments based on semantic fusion of multimodal data (Chinese Literature)
- [backtrader source code analysis 4] use Python to rewrite the first function of backtrader: time2num, which improves the efficiency by 2.2 times
- Concurrent operation memory interaction
- C language program ideas and several commonly used filters
- 1115 counting nodes in a BST (30 points)
猜你喜欢
![[research materials] 2022q1 game preferred casual game distribution circular - Download attached](/img/13/5a67c5d08131745759fdc70a71cf0f.jpg)
[research materials] 2022q1 game preferred casual game distribution circular - Download attached

音频焦点系列:手写一个demo理解音频焦点与AudioMananger

Gbase8s composite index (I)

How to connect the network: Chapter 2 (Part 1): a life cycle of TCP connection | CSDN creation punch in

Retirement plan fails, 64 year old programmer starts work again

Pan details of deep learning

BIO、NIO、AIO区别

Thesis reading_ Tsinghua Ernie

Basic knowledge of reflection (detailed explanation)
![[research materials] 2021 China's game industry brand report - Download attached](/img/b7/a377b0b7c742078e2feb28ebfbca62.jpg)
[research materials] 2021 China's game industry brand report - Download attached
随机推荐
RT thread flow notes I startup, schedule, thread
Market status and development prospect prediction of global colorimetric cup cover industry in 2022
Learn to use the idea breakpoint debugging tool
1095 cars on campus (30 points)
[set theory] relationship properties (common relationship properties | relationship properties examples | relationship operation properties)
Shuttle + alluxio accelerated memory shuffle take-off
Current market situation and development prospect forecast of global UV sensitive resin 3D printer industry in 2022
Realize file download through the tag of < a > and customize the file name
Apache MPM model and ab stress test
Huawei personally ended up developing 5g RF chips, breaking the monopoly of Japan and the United States
Wechat applet waterfall flow and pull up to the bottom
Market status and development prospect prediction of global fermentation acid industry in 2022
Pan details of deep learning
leetcode435. Non overlapping interval
Notes | numpy-11 Array operation
JQ style, element operation, effect, filtering method and transformation, event object
Cross platform plug-in flutter for displaying local notifications_ local_ notifications
On typescript and grammar
Class loading mechanism (detailed explanation of the whole process)
leetcode406. Rebuild the queue based on height