diff options
author | Binbin <binloveplay1314@qq.com> | 2022-08-14 15:50:31 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-14 10:50:31 +0300 |
commit | 1f600efd013b9b01d683ba32f7630a5cf51ada43 (patch) | |
tree | 5f02ab333a8c6b286edb01ff6dae616579bcae0f /redis.conf | |
parent | 99ebbee2b260b3466672b4fa351cf1cb5e9b5fe9 (diff) | |
download | redis-1f600efd013b9b01d683ba32f7630a5cf51ada43.tar.gz |
Fix outdated lfu-decay-time doc in redis.conf (#11108)
The divided by two and less <= 10 logics were changed in 06ca9d683920da19ad53532f8cd55b54584027bc.
Now we just decrement the counter by num_periods.
The lfu-decay-time special value of 0 's meaning was actually changed in 06ca9d683920da19ad53532f8cd55b54584027bc.
Now we won't do anything on counter if lfu-decay-time is 0.
Diffstat (limited to 'redis.conf')
-rw-r--r-- | redis.conf | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/redis.conf b/redis.conf index 0431c3742..13b29c428 100644 --- a/redis.conf +++ b/redis.conf @@ -2167,11 +2167,10 @@ rdb-save-incremental-fsync yes # to accumulate hits. # # The counter decay time is the time, in minutes, that must elapse in order -# for the key counter to be divided by two (or decremented if it has a value -# less <= 10). +# for the key counter to be decremented. # -# The default value for the lfu-decay-time is 1. A special value of 0 means to -# decay the counter every time it happens to be scanned. +# The default value for the lfu-decay-time is 1. A special value of 0 means we +# will never decay the counter. # # lfu-log-factor 10 # lfu-decay-time 1 |