当前位置:网站首页>Redis expiration elimination mechanism
Redis expiration elimination mechanism
2022-07-03 05:09:00 【amateur12】
Delete regularly ---> Lazy deletion ---> Delete periodically
For periodic deletion, there are 8 A data culling strategy
LRU Algorithm ( Recently at least use )
volatile-lru: Select the least recently used data from the data set with expiration time set
allkeys-lru: Remove the least recently used... When memory is insufficient for new write data key
LFU Algorithm ( The frequency of use is the least )
volatile-lfu: Select the data with the least frequency of use from the data set with expiration time
allkeys-lfu: When the memory is insufficient to accommodate the newly written data, remove the least frequently used key
allkeys-random: Choose data elimination from data set
volatile-random: Select any data elimination from the data set with expiration time set
volatile-ttl: Select the data that will expire from the data set with expiration time set
no-enviction: When the memory is not enough to hold the newly written data , Error will be reported in new write operation
边栏推荐
- Overview of basic knowledge of C language
- How to connect the network: Chapter 1 CSDN creation punch in
- study hard and make progress every day
- 2022-02-12 daily clock in: problem fine brush
- 【实战项目】自主web服务器
- 5-36v input automatic voltage rise and fall PD fast charging scheme drawing 30W low-cost chip
- Huawei personally ended up developing 5g RF chips, breaking the monopoly of Japan and the United States
- Handler understands the record
- Mobile terminal - uniapp development record (public request encapsulation)
- Caijing 365 stock internal reference: what's the mystery behind the good father-in-law paying back 50 million?
猜你喜欢
How to connect the network: Chapter 1 CSDN creation punch in
On typescript and grammar
The consumption of Internet of things users is only 76 cents, and the price has become the biggest obstacle to the promotion of 5g industrial interconnection
[set theory] relation properties (reflexivity | reflexivity theorem | reflexivity | reflexivity theorem | example)
Burp suite plug-in based on actual combat uses tips
Handler understands the record
Shuttle + Alluxio 加速内存Shuffle起飞
Gbase8s composite index (I)
Review the configuration of vscode to develop golang
2022-02-12 daily clock in: problem fine brush
随机推荐
Shallow and first code
1118 birds in forest (25 points)
Wechat applet waterfall flow and pull up to the bottom
Gbase8s unique index and non unique index
1111 online map (30 points)
Messy change of mouse style in win system
1114 family property (25 points)
appium1.22.x 版本後的 appium inspector 需單獨安裝
Webapidom get page elements
On typescript and grammar
Go language interface learning notes Continued
The consumption of Internet of things users is only 76 cents, and the price has become the biggest obstacle to the promotion of 5g industrial interconnection
Detailed explanation of yolov5 training own data set
Thesis reading_ Chinese medical model_ eHealth
[research materials] 2022q1 game preferred casual game distribution circular - Download attached
Promise
2022-02-11 daily clock in: problem fine brush
Market status and development prospect prediction of global fermented plant protein industry in 2022
Problems encountered in fuzzy query of SQL statements
Gbase8s composite index (I)