zhaozhao.zz 583c314725 LFU: do some changes about LFU to find hotkeys
Firstly, use access time to replace the decreas time of LFU.
For function LFUDecrAndReturn,
it should only try to get decremented counter,
not update LFU fields, we will update it in an explicit way.
And we will times halve the counter according to the times of
elapsed time than server.lfu_decay_time.
Everytime a key is accessed, we should update the LFU
including update access time, and increment the counter after
call function LFUDecrAndReturn.
If a key is overwritten, the LFU should be also updated.
Then we can use `OBJECT freq` command to get a key's frequence,
and LFUDecrAndReturn should be called in `OBJECT freq` command
in case of the key has not been accessed for a long time,
because we update the access time only when the key is read or
overwritten.
2017-11-27 18:39:22 +01:00
..
2017-07-06 19:47:21 +08:00
2016-04-25 16:49:57 +03:00
2016-06-07 16:46:00 -04:00
2016-04-04 08:50:58 +02:00
2015-10-01 13:02:25 +02:00
2016-07-27 11:34:25 +02:00
2016-07-27 11:34:25 +02:00
2016-06-14 14:45:28 +02:00
2015-07-27 14:37:58 +02:00
2015-07-27 14:37:58 +02:00
2017-04-08 17:31:13 +02:00
2017-04-07 08:46:39 +02:00
2017-11-27 11:34:11 +01:00
2016-10-10 01:13:20 +09:00
2017-01-18 17:12:07 +01:00
2016-04-25 16:49:57 +03:00
2015-04-27 12:07:49 +02:00
2015-04-27 12:07:49 +02:00
2017-02-21 17:07:28 +01:00
2016-09-12 13:19:05 +02:00
2016-05-10 06:40:05 +02:00
2017-02-01 17:01:31 +01:00