当前位置:网站首页>redis缓存
redis缓存
2022-07-04 20:18:00 【每日一悟】
redis作为缓存:
缓存不是全量数,缓存应该随着访问变化
LFU:碰了多少次
LRU:多久没碰
key的有效期:不会随着访问延长
EXPIRE k1 50
设置过期时间
key的有效期:发生写,会剔除过期时间
过期判定原理:
(1)被动访问时判定
(2)周期轮训判定(增量)
稍微牺牲下内存,保住redis的性能
边栏推荐
猜你喜欢

Gobang go to work fishing tools can be LAN / man-machine

y56.第三章 Kubernetes从入门到精通 -- 业务镜像版本升级及回滚(二九)

华为ensp模拟器 实现多个路由器的设备可以相互访问
![[1200. Minimum absolute difference]](/img/fa/4ffbedd8f24c75a20d3eaeaf0430ae.png)
[1200. Minimum absolute difference]

What are the functional modules of RFID warehouse management system solution

偷窃他人漏洞报告变卖成副业,漏洞赏金平台出“内鬼”

黄金k线图中的三角形有几种?

MySQL - database query - use of aggregate function, aggregate query, grouping query

哈希表、哈希函数、布隆过滤器、一致性哈希

UTF encoding and character set in golang
随机推荐
Jekins initialization password not found or not found
五子棋 上班摸鱼工具 可局域网/人机
torch.tensor和torch.Tensor的区别
How does wincc7.5 SP1 find variables and their positions through cross indexing?
杰理之AD 系列 MIDI 功能说明【篇】
华为ensp模拟器 三层交换机
Idea restore default shortcut key
杰理之AD 系列 MIDI 功能说明【篇】
Day24:文件系统
WinCC7.5 SP1如何通过交叉索引来寻找变量及其位置?
[server data recovery] a case of RAID5 data recovery stored in a brand of server
【服务器数据恢复】某品牌服务器存储raid5数据恢复案例
Pytorch---使用Pytorch实现LinkNet进行语义分割
async await 在map中使用
Go notes (1) go language introduction and characteristics
[solution] paddlepaddle 2 X call static graph mode
VIM asynchronous problem
吐槽 B 站收费,是怪它没钱么?
hash 表的概念及应用
Idea plug-in