当前位置:网站首页>【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
边栏推荐
- LeetCode50天刷题计划(Day 19—— 在排序数组中查找元素的第一个和最后一个位置(9.10-10.40)
- Centos7环境使用Mysql离线安装包安装Mysql5.7
- 英特尔推送20220809 CPU微码更新 修补Intel-SA-00657安全漏洞
- mysql appears: ERROR 1524 (HY000): Plugin '123' is not loaded
- Intel pushes 20220809 CPU microcode update to patch Intel-SA-00657 security vulnerability
- HDU 6040 Hints of sd0061 (技巧)
- 态路小课堂丨如何为CXP光模块选择光纤跳线?
- 力扣练习——62 有效的数独
- [E-commerce operation] Do you really understand social media marketing (SMM)?
- LeetCode_152_乘积最大子数组
猜你喜欢
随机推荐
HDU 1520 Anniversary party (tree dp)
LeetCode50天刷题计划(Day 16—— 两两交换链表中的节点(9.10-10.30)
建校仅11年就入选“双一流” ,这所高校是凭什么做到的?
rider内Mono脚本找不到引用资源
Centos7环境使用Mysql离线安装包安装Mysql5.7
快速上手,征服三种不同分布式架构调用方案
不止跑路,拯救误操作rm -rf /*的小伙儿
POJ 2891 Strange Way to Express Integers (Extended Euclidean)
再有人问你分布式事务,把这篇扔给他
基于UiAutomator2+PageObject模式开展APP自动化测试实战
HDU 6040 Hints of sd0061 (技巧)
APP automation testing practice based on UiAutomator2+PageObject mode
MLX90640 红外热成像仪测温传感器 手机 APP 软件 RedEye 连接详细
使用哈工大LTP测试分词并且增加自定义字典
Redis常用命令
codevs 2370 Small room tree (LCA)
Does your child lack self-discipline?Ape Counseling: Pay attention to "blank" in the schedule to give children more control
Analysis of the name matching process between the LCD driver and the device (Tiny4412)
单目操作符(含原码反码补码转换)
网络基础(第一节)









