1
0
mirror of https://github.com/Snailclimb/JavaGuide synced 2025-06-20 22:17:09 +08:00

LRU全称勘误

This commit is contained in:
Veast 2020-08-26 23:07:25 +08:00 committed by GitHub
parent cdd59d06fb
commit 20ad522ec9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -476,7 +476,7 @@ typedef struct redisDb {
Redis 提供 6 种数据淘汰策略:
1. **volatile-lruleast frequently used**从已设置过期时间的数据集server.db[i].expires中挑选最近最少使用的数据淘汰
1. **volatile-lruleast recently used**从已设置过期时间的数据集server.db[i].expires中挑选最近最少使用的数据淘汰
2. **volatile-ttl**从已设置过期时间的数据集server.db[i].expires中挑选将要过期的数据淘汰
3. **volatile-random**从已设置过期时间的数据集server.db[i].expires中任意选择数据淘汰
4. **allkeys-lruleast recently used**:当内存不足以容纳新写入数据时,在键空间中,移除最近最少使用的 key这个是最常用的