当前位置:网站首页>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:当内存不足以容纳新写入数据时,新写入操作会报错
边栏推荐
- Literature reading_ Research on the usefulness identification of tourism online comments based on semantic fusion of multimodal data (Chinese Literature)
- Common methods of JS array
- JS string and array methods
- "Hands on deep learning" pytorch edition Chapter II exercise
- Review the configuration of vscode to develop golang
- JDBC database operation
- JS function algorithm interview case
- Maximum continuous sub segment sum (dynamic programming, recursive, recursive)
- [research materials] 2021 annual report on mergers and acquisitions in the property management industry - Download attached
- 1103 integer factorization (30 points)
猜你喜欢
Keepalived热备与HAProxy
[set theory] relationship properties (common relationship properties | relationship properties examples | relationship operation properties)
5-36v input automatic voltage rise and fall PD fast charging scheme drawing 30W low-cost chip
Flutter monitors volume to realize waveform visualization of audio
Celebrate the new year together
Prepare for 2022 and welcome the "golden three silver four". The "summary of Android intermediate and advanced interview questions in 2022" is fresh, so that your big factory interview can go smoothly
Thesis reading_ Chinese NLP_ ELECTRA
Audio Focus Series: write a demo to understand audio focus and audiomananger
Basic use of Metasploit penetration testing framework
ZABBIX monitoring of lamp architecture (2): ZABBIX basic operation
随机推荐
LVS load balancing cluster of efficient multi-purpose cluster (NAT mode)
Problems encountered in fuzzy query of SQL statements
Market status and development prospect prediction of the global fire extinguisher industry in 2022
Review the configuration of vscode to develop golang
Shallow and first code
"Hands on deep learning" pytorch edition Chapter II exercise
Review the old and know the new: Notes on Data Science
Thesis reading_ Tsinghua Ernie
Dynamic programming - related concepts, (tower problem)
Thesis reading_ Chinese medical model_ eHealth
1118 birds in forest (25 points)
Market status and development prospect prediction of the near infrared sensor industry of the global Internet of things in 2022
Without 50W bride price, my girlfriend was forcibly dragged away. What should I do
The 19th Zhejiang I. barbecue
Wechat applet distance and map
Huawei personally ended up developing 5g RF chips, breaking the monopoly of Japan and the United States
Pan details of deep learning
Coordinatorlayout appbarrayout recyclerview item exposure buried point misalignment analysis
Audio Focus Series: write a demo to understand audio focus and audiomananger
[backtrader source code analysis 5] rewrite several time number conversion functions in utils with Python