1
0
mirror of https://github.com/Snailclimb/JavaGuide synced 2025-06-16 18:10:13 +08:00

Merge pull request #912 from veast/patch-1

LRU全称勘误
This commit is contained in:
SnailClimb 2020-09-01 10:14:19 +08:00 committed by GitHub
commit 9daac81e00
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这个是最常用的