mirror of
https://github.com/fluencelabs/redis
synced 2025-06-25 15:01:33 +00:00
Specify LRU resolution in milliseconds.
This commit is contained in:
@ -650,7 +650,7 @@ char *strEncoding(int encoding) {
|
||||
|
||||
/* Given an object returns the min number of seconds the object was never
|
||||
* requested, using an approximated LRU algorithm. */
|
||||
unsigned long estimateObjectIdleTime(robj *o) {
|
||||
unsigned long long estimateObjectIdleTime(robj *o) {
|
||||
if (server.lruclock >= o->lru) {
|
||||
return (server.lruclock - o->lru) * REDIS_LRU_CLOCK_RESOLUTION;
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user