当前位置:网站首页>【Redis】内存回收策略
【Redis】内存回收策略
2022-08-10 11:11:00 【全栈程序员站长】
大家好,又见面了,我是你们的朋友全栈君。
1.删除过期键对象 惰性删除 定时任务删除 2.内存溢出控制策略 volatile-lru:从已设置过期时间的数据集(server.db[i].expires)中挑选最近最少使用的数据淘汰
volatile-ttl:从已设置过期时间的数据集(server.db[i].expires)中挑选将要过期的数据淘汰
volatile-random:从已设置过期时间的数据集(server.db[i].expires)中任意选择数据淘汰
allkeys-lru:从数据集(server.db[i].dict)中挑选最近最少使用的数据淘汰
allkeys-random:从数据集(server.db[i].dict)中任意选择数据淘汰
no-enviction(驱逐):禁止驱逐数据
发布者:全栈程序员栈长,转载请注明出处:https://javaforall.cn/105616.html原文链接:https://javaforall.cn
边栏推荐
- 振弦传感器及核心VM系列振弦采集模块
- [Brave food, not afraid to write the linked list] The problem of the penultimate node of the linked list
- LeetCode 24. 两两交换链表中的节点
- 关于振弦采集模块及采集仪振弦频率值准确率的问题
- 使用哈工大LTP测试分词并且增加自定义字典
- rider内Mono脚本找不到引用资源
- [E-commerce operation] Do you really understand social media marketing (SMM)?
- LeetCode 82. 删除排序链表中的重复元素 II
- AutoCAD Map 3D功能之一暴力处理悬挂点(延伸)
- LCD驱动端与设备端名称匹配过程分析(Tiny4412)
猜你喜欢
随机推荐
即时零售业态下如何实现自动做账?
Pulling drills - 56 Finding the right interval
【小程序 | 启航篇】一文打通任督二脉
从脚本到剪辑,影像大师亲授的后期制作秘籍
Stroke Practice - 62 Valid Sudokus
LeetCode 362. Design Hit Counter(计数器)
mpf6_Time Series Data_quandl_更正kernel PCA_AIC_BIC_trend_log_return_seasonal_decompose_sARIMAx_ADFull
HDU 4135: Co-prime (the principle of inclusion and exclusion)
Network sockets (UDP and TCP programming)
做自媒体月入几万?博主们都在用的几个自媒体工具
振弦传感器及核心VM系列振弦采集模块
微信小程序提交审核历史版本记录从哪里查看
LeetCode_628_三个数的最大乘积
越折腾越好用的 3 款开源 APP
第二十二章 源代码文件 REST API 参考(四)
POJ 2891 Strange Way to Express Integers (Extended Euclidean)
POJ 1026 Cipher (Permutation Groups)
为什么Redis很快
codevs 2370 小机房的树 (LCA)
网络套接字(UDP和TCP编程)