redis内存回收
2024-09-01 16:53:47
1.定时过期expilre expire key TTL 10定时器 主动淘汰
2.惰性过期 被动淘汰
3getCommand
expireIfNeed() 设置内存上线 set memory 上线
activeExpireCycle() redis使用了 惰性过期 + 定期过期 达到了最大内存上线后根据内存淘汰规则 # volatile-lru -> remove the key with an expire set using an LRU algorithm
# allkeys-lru -> remove any key according to the LRU algorithm
# volatile-random -> remove a random key with an expire set
# allkeys-random -> remove a random key, any key
# volatile-ttl -> remove the key with the nearest expire time (minor TTL)
# noeviction -> don't expire at all, just return an error on write operations 不在接收新的指令存进内存
最新文章
- 电商系统中的商品模型的分析与设计—续
- Android Studio插件美化Android Studio,文艺清新范
- [译]学习IPython进行交互式计算和数据可视化(二)
- 【前端积累】createElement createTextNode
- IOS UIwebview 背景色调整
- mark标签:
- (中等) HDU 5046 Airport ,DLX+可重复覆盖+二分。
- 201521123058 java第六次作业
- MSSQL-并发控制-1-Transaction
- Jenkins远程部署SpringBoot应用
- Android Wear开发
- HTML学习笔记6:列表标签
- python网络-多线程(22)
- BZOJ2229[Zjoi2011]最小割——最小割树
- PPPOE
- linux安装dpkg安装缺少依赖项的解决
- hibernate之helloword(环境搭建)
- Oracle 基本操作符
- Android-认识Service
- P1350 车的放置
热门文章
- Floyd弗洛伊德算法
- frameset框架在.net网站中的小实现。
- videojs文档翻译Guides-Plugins
- ThinkPHP5 SQL注入漏洞 &;&; 敏感信息泄露
- Appium使用inspactor开始session报";Could not connect to server; are you sure it's running?";
- 阿里云RocketMQ定时/延迟消息队列实现
- API接口测试
- Nature | 多层次蛋白质组学综合分析冠状病毒侵染宿主细胞的分子机制
- RHCSA_DAY11
- Servlet中的HttpServletResponse 类