当前位置:网站首页>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:当内存不足以容纳新写入数据时,新写入操作会报错
边栏推荐
- 动态规划——相关概念,(数塔问题)
- Market status and development prospect prediction of the global fire alarm sensor industry in 2022
- MySQL master-slave configuration
- Common methods of JS array
- study hard and make progress every day
- [set theory] relational power operation (relational power operation | examples of relational power operation | properties of relational power operation)
- Make your own dataset
- JS string and array methods
- Market status and development prospects of the global automatic tea picker industry in 2022
- appium1.22.x 版本后的 appium inspector 需单独安装
猜你喜欢
Appium 1.22. L'Inspecteur appium après la version X doit être installé séparément
Retirement plan fails, 64 year old programmer starts work again
Interface frequency limit access
[Yu Yue education] basic reference materials of interchangeability and measurement technology of Zhongyuan Institute of Technology
[research materials] 2022q1 game preferred casual game distribution circular - Download attached
leetcode435. Non overlapping interval
Three representations of signed numbers: original code, inverse code and complement code
ZABBIX monitoring of lamp architecture (2): ZABBIX basic operation
leetcode860. Lemonade change
[research materials] 2021 annual report on mergers and acquisitions in the property management industry - Download attached
随机推荐
Analysis of proxy usage of ES6 new feature
[batch dos-cmd command - summary and summary] - CMD window setting and operation command - close CMD window and exit CMD environment (exit, exit /b, goto: EOF)
Market status and development prospects of the global IOT active infrared sensor industry in 2022
1095 cars on campus (30 points)
Market status and development prospect prediction of the global fire extinguisher industry in 2022
Hire cashier (differential constraint)
es7创建索引容易犯的错误
Current market situation and development prospect prediction of global direct energy deposition 3D printer industry in 2022
1111 online map (30 points)
Web APIs exclusivity
Automatic voltage rise and fall 5-40v multi string super capacitor charging chip and solution
【批处理DOS-CMD命令-汇总和小结】-CMD窗口的设置与操作命令-关闭cmd窗口、退出cmd环境(exit、exit /b、goto :eof)
leetcode435. Non overlapping interval
Notes | numpy-11 Array operation
Gbase8s composite index (I)
Source insight garbled code solution
Notes | numpy-09 Broadcast
Make your own dataset
Thesis reading_ ICD code_ MSMN
Thesis reading_ Chinese NLP_ ELECTRA