| 默认 | 0(不压缩) |
|---|---|
| 含义 | 两端保留热节点,中间压缩 |
| 取值 | N 表示两端各 N 个节点不压 |
示例
示例
redis-cli CONFIG GET list-compress-depth
redis-cli CONFIG SET list-compress-depth 1两端访问热、中段访问少的场景收益明显;两端频繁访问的队列收益有限。
quicklist 由多个节点组成,list-compress-depth 控制两端各多少个节点不压缩、中间节点压缩存储,平衡内存与访问成本。
| 默认 | 0(不压缩) |
|---|---|
| 含义 | 两端保留热节点,中间压缩 |
| 取值 | N 表示两端各 N 个节点不压 |
redis-cli CONFIG GET list-compress-depth
redis-cli CONFIG SET list-compress-depth 1