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

Merge pull request #2558 from wunameya/main

Update redis-data-structures-02.md
This commit is contained in:
Guide 2024-12-13 08:27:06 +08:00 committed by GitHub
commit 53ce8e9d14
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -123,7 +123,7 @@ HyperLogLog 相关的命令非常少,最常用的也就 3 个。
### 应用场景 ### 应用场景
**数量巨大(百万、千万级别以上)的计数场景** **数量巨大(百万、千万级别以上)的计数场景**
- 举例:热门网站每日/每周/每月访问 ip 数统计、热门帖子 uv 统计、 - 举例:热门网站每日/每周/每月访问 ip 数统计、热门帖子 uv 统计、
- 相关命令:`PFADD``PFCOUNT` - 相关命令:`PFADD``PFCOUNT`

View File

@ -729,7 +729,7 @@ Redis 的定期删除过程是随机的(周期性地随机从设置了过期
Redis 7.2 版本的执行时间阈值是 **25ms**,过期 key 比例设定值是 **10%** Redis 7.2 版本的执行时间阈值是 **25ms**,过期 key 比例设定值是 **10%**
```java ```c
#define ACTIVE_EXPIRE_CYCLE_FAST_DURATION 1000 /* Microseconds. */ #define ACTIVE_EXPIRE_CYCLE_FAST_DURATION 1000 /* Microseconds. */
#define ACTIVE_EXPIRE_CYCLE_SLOW_TIME_PERC 25 /* Max % of CPU to use. */ #define ACTIVE_EXPIRE_CYCLE_SLOW_TIME_PERC 25 /* Max % of CPU to use. */
#define ACTIVE_EXPIRE_CYCLE_ACCEPTABLE_STALE 10 /* % of stale keys after which #define ACTIVE_EXPIRE_CYCLE_ACCEPTABLE_STALE 10 /* % of stale keys after which