当前位置:网站首页>Redis cache
Redis cache
2022-07-04 21:19:00 【Daily enlightenment】
redis As caching :
Cache is not full , Caching should change with access
LFU: How many times
LRU: How long has it been
key The validity of the : Will not extend with the visit
EXPIRE k1 50
Set expiration time
key The validity of the : Occurrence write , The expiration time will be excluded
Principle of expiration determination :
(1) Passive access decision
(2) Periodic rotation judgment ( The incremental )
Sacrifice memory a little , keep redis Performance of
边栏推荐
- Vue cleans up the keepalive cache scheme in a timely manner
- Golang中UTF编码和字符集
- Gobang go to work fishing tools can be LAN / man-machine
- HMS Core 统一扫码服务
- Go notes (3) usage of go language FMT package
- acwing 3302. Expression evaluation
- render函数与虚拟dom
- Ten years' experience of byte test engineer directly hits the pain point of UI automation test
- Implementation of redis distributed lock
- Day24: file system
猜你喜欢
D3.js+Three.js数据可视化3d地球js特效
What are the functional modules of RFID warehouse management system solution
网件r7000梅林系统虚拟内存创建失败,提示USB磁盘读写速度不满足要求解决办法,有需要创建虚拟内存吗??
torch.tensor和torch.Tensor的区别
【观察】联想:3X(1+N)智慧办公解决方案,释放办公生产力“乘数效应”
Solution of 5g unstable 5g signal often dropped in NetWare r7000 Merlin system
The video sound of station B is very low - solution
【1200. 最小绝对差】
Routing configuration and connectivity test of Huawei simulator ENSP
torch. Tensor and torch The difference between tensor
随机推荐
uniapp 富文本编辑器使用
2021 CCPC 哈尔滨 I. Power and Zero(二进制 + 思维)
LeetCode 7. Integer inversion
shp数据制作3DTiles白膜
go defer的使用说明
Introduction to pressure measurement of JMeter
__init__() missing 2 required positional arguments 不易查明的继承错误
Some suggestions for interface design
记一次重复造轮子(Obsidian 插件设置说明汉化)
网件r7000梅林系统5g不稳定 5g信号经常掉线解决方法
华为模拟器ensp的路由配置以及连通测试
基于OpenCV haarcascades的对象检测
Go notes (3) usage of go language FMT package
Remember to build wheels repeatedly at one time (the setting instructions of obsidian plug-in are translated into Chinese)
杰理之AD 系列 MIDI 功能说明【篇】
【观察】联想:3X(1+N)智慧办公解决方案,释放办公生产力“乘数效应”
Idea plug-in
GVM use
NetWare r7000 Merlin system virtual memory creation failed, prompting that the USB disk reading and writing speed does not meet the requirements. Solution, is it necessary to create virtual memory??
[server data recovery] a case of RAID5 data recovery stored in a brand of server