Fix outdated lfu-decay-time doc in redis.conf (#11108)

The divided by two and less <= 10 logics were changed in 06ca9d6839.
Now we just decrement the counter by num_periods.

The lfu-decay-time special value of 0 's meaning was actually changed in 06ca9d6839.
Now we won't do anything on counter if lfu-decay-time is 0.
This commit is contained in:
Binbin
2022-08-14 10:50:31 +03:00
committed by GitHub
parent 99ebbee2b2
commit 1f600efd01
+3 -4
View File
@@ -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