当前位置:网站首页>【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
边栏推荐
- Open Office XML 格式里如何描述多段具有不同字体设置的段落
- HDU 6040 Hints of sd0061 (技巧)
- From the product dimension, why can't we fully trust Layer2?
- Hangdian Multi-School-Loop-(uncertainty greedy + line segment tree)
- 基于UiAutomator2+PageObject模式开展APP自动化测试实战
- StoneDB Document Bug Hunting Season 1
- Article take you understand interrupt the key driver of polling mechanism
- Nocalhost - 让云原生时代的开发更高效
- LeetCode 21. 合并两个有序链表
- Licking Exercise - 63 Find all anagrams in a string
猜你喜欢
随机推荐
常量及数据类型你还记得多少?
零基础想自学软件测试,有没有大佬可以分享下接下来的学习书籍和路线?
怎么加入自媒体,了解这5种变现模式,让账号快速变现
Open Office XML 格式里如何描述多段具有不同字体设置的段落
Emulate stm32 directly with proteus - the programmer can be completely discarded
微信小程序,全局变量一个地方改变了其他地方的状态也跟着改变。
自媒体爆款标题怎么写?手把手教你写热门标题
【TypeScript】接口类型与类型别名:这两者的用法与区别分别是什么?
WeChat applet, global variables change in one place and the state in other places also changes.
blocking non-blocking poll mechanism asynchronous
软件架构简介
std::move()
POJ 3101 Astronomy (Mathematics)
Centos7 environment uses Mysql offline installation package to install Mysql5.7
LeetCode_443_压缩字符串
【Untitled】
flask-restplus接口地址404问题
LeetCode 138. 复制带随机指针的链表
Double.doubleToLongBits() method uses
Chapter 22 Source Code File REST API Reference (4)









