Skip to content

Commit

Permalink
LRU全称勘误
Browse files Browse the repository at this point in the history
  • Loading branch information
veast authored Aug 26, 2020
1 parent cdd59d0 commit 20ad522
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/database/Redis/redis-all.md
Original file line number Diff line number Diff line change
Expand Up @@ -476,7 +476,7 @@ typedef struct redisDb {
Redis 提供 6 种数据淘汰策略:

1. **volatile-lru(least frequently used)**:从已设置过期时间的数据集(server.db[i].expires)中挑选最近最少使用的数据淘汰
1. **volatile-lru(least recently used)**:从已设置过期时间的数据集(server.db[i].expires)中挑选最近最少使用的数据淘汰
2. **volatile-ttl**:从已设置过期时间的数据集(server.db[i].expires)中挑选将要过期的数据淘汰
3. **volatile-random**:从已设置过期时间的数据集(server.db[i].expires)中任意选择数据淘汰
4. **allkeys-lru(least recently used)**:当内存不足以容纳新写入数据时,在键空间中,移除最近最少使用的 key(这个是最常用的)
Expand Down

0 comments on commit 20ad522

Please sign in to comment.