当前位置:网站首页>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:当内存不足以容纳新写入数据时,新写入操作会报错
边栏推荐
- 1110 complete binary tree (25 points)
- 1111 online map (30 points)
- Botu uses peek and poke for IO mapping
- cookie session jwt
- Actual combat 8051 drives 8-bit nixie tube
- Sprintf formatter abnormal exit problem
- Learn to use the idea breakpoint debugging tool
- Pan details of deep learning
- JS scope
- Notes | numpy-09 Broadcast
猜你喜欢

appium1.22.x 版本后的 appium inspector 需单独安装
![[basic grammar] C language uses for loop to print Pentagram](/img/9e/021c6c0e748e0981d4233f74c83e76.jpg)
[basic grammar] C language uses for loop to print Pentagram

How to connect the network: Chapter 1 CSDN creation punch in

Overview of basic knowledge of C language

cookie session jwt
![[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

Review the configuration of vscode to develop golang

Concurrent operation memory interaction

JS dynamic table creation

Shallow and first code
随机推荐
Realize file download through the tag of < a > and customize the file name
Distinguish between releases and snapshots in nexus private library
Flutter monitors volume to realize waveform visualization of audio
[Yu Yue education] basic reference materials of interchangeability and measurement technology of Zhongyuan Institute of Technology
1099 build a binary search tree (30 points)
Pan details of deep learning
Market status and development prospects of the global autonomous marine glider industry in 2022
Based on RFC 3986 (unified resource descriptor (URI): general syntax)
Notes | numpy-09 Broadcast
Burp suite plug-in based on actual combat uses tips
Shuttle + alluxio accelerated memory shuffle take-off
Overview of basic knowledge of C language
Learning record of arouter principle
Thesis reading_ ICD code_ MSMN
【实战项目】自主web服务器
1107 social clusters (30 points)
ZABBIX monitoring of lamp architecture (3): zabbix+mysql (to be continued)
Sprintf formatter abnormal exit problem
Current market situation and development prospect forecast of global UV sensitive resin 3D printer industry in 2022
Maximum continuous sub segment sum (dynamic programming, recursive, recursive)