当前位置:网站首页>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:当内存不足以容纳新写入数据时,新写入操作会报错
边栏推荐
- JDBC database operation
- Common methods of JS array
- Learning record of arouter principle
- Go language interface learning notes
- Pan details of deep learning
- [set theory] relationship properties (symmetry | symmetry examples | symmetry related theorems | antisymmetry | antisymmetry examples | antisymmetry theorems)
- Huawei personally ended up developing 5g RF chips, breaking the monopoly of Japan and the United States
- The programmer resigned and was sentenced to 10 months for deleting the code. JD came home and said that it took 30000 to restore the database. Netizen: This is really a revenge
- Market status and development prospect prediction of global fermented plant protein industry in 2022
- study hard and make progress every day
猜你喜欢

Flutter monitors volume to realize waveform visualization of audio
![[research materials] annual report of China's pension market in 2021 - Download attached](/img/24/622aeeb38de16ac84128b362ceeddb.jpg)
[research materials] annual report of China's pension market in 2021 - Download attached

Make your own dataset

JS dynamic table creation

Coordinatorlayout appbarrayout recyclerview item exposure buried point misalignment analysis

On typescript and grammar
![[set theory] relation properties (transitivity | transitivity examples | transitivity related theorems)](/img/c2/87358af6b2b2892a6eceb751b3b60c.jpg)
[set theory] relation properties (transitivity | transitivity examples | transitivity related theorems)

Basic knowledge of reflection (detailed explanation)

RT thread flow notes I startup, schedule, thread
![[Yu Yue education] basic reference materials of interchangeability and measurement technology of Zhongyuan Institute of Technology](/img/f1/d0dc4dc3fe49a2d2cd9e452a0ce31e.jpg)
[Yu Yue education] basic reference materials of interchangeability and measurement technology of Zhongyuan Institute of Technology
随机推荐
Use Sqlalchemy module to obtain the table name and field name of the existing table in the database
Based on RFC 3986 (unified resource descriptor (URI): general syntax)
1119 pre- and post order traversals (30 points)
Market status and development prospect prediction of the global fire hose industry in 2022
Oracle SQL table data loss
1118 birds in forest (25 points)
[backtrader source code analysis 5] rewrite several time number conversion functions in utils with Python
Force GCC to compile 32-bit programs on 64 bit platform
Basic knowledge of reflection (detailed explanation)
SSM framework integration
Market status and development prospect prediction of global SoC Test Platform Industry in 2022
Problems encountered in fuzzy query of SQL statements
Thesis reading_ Tsinghua Ernie
Mobile terminal - uniapp development record (public request encapsulation)
Market status and development prospect prediction of the global fire extinguisher industry in 2022
Analysis of proxy usage of ES6 new feature
1114 family property (25 points)
1099 build a binary search tree (30 points)
Actual combat 8051 drives 8-bit nixie tube
appium1.22. Appium inspector after X version needs to be installed separately