We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c64ea17 + d3b193a commit 9aefe25Copy full SHA for 9aefe25
docs/database/Redis/Redis.md
@@ -164,6 +164,12 @@ redis 配置文件 redis.conf 中有相关注释,我这里就不贴了,大
164
5. **allkeys-random**:从数据集(server.db[i].dict)中任意选择数据淘汰
165
6. **no-eviction**:禁止驱逐数据,也就是说当内存不足以容纳新写入数据时,新写入操作会报错。这个应该没人使用吧!
166
167
+4.0版本后增加以下两种:
168
+
169
+7. **volatile-lfu**:从已设置过期时间的数据集(server.db[i].expires)中挑选最不经常使用的数据淘汰
170
+8. **allkeys-lfu**:当内存不足以容纳新写入数据时,在键空间中,移除最不经常使用的key
171
172
173
174
**备注: 关于 redis 设置过期时间以及内存淘汰机制,我这里只是简单的总结一下,后面会专门写一篇文章来总结!**
175
0 commit comments