mirror of
https://github.com/fluencelabs/redis
synced 2025-06-16 02:31:20 +00:00
Object approximated LRU algorithm enhanced / fixed / refactored. This is used for the VM currently but will soon be used for maxmemory expiring.
This commit is contained in:
@ -213,9 +213,11 @@ void debugCommand(redisClient *c) {
|
||||
strenc = strEncoding(val->encoding);
|
||||
addReplyStatusFormat(c,
|
||||
"Value at:%p refcount:%d "
|
||||
"encoding:%s serializedlength:%lld",
|
||||
"encoding:%s serializedlength:%lld "
|
||||
"lru :%d lru_seconds_idle:%lu",
|
||||
(void*)val, val->refcount,
|
||||
strenc, (long long) rdbSavedObjectLen(val,NULL));
|
||||
strenc, (long long) rdbSavedObjectLen(val,NULL),
|
||||
val->lru, estimateObjectIdleTime(val));
|
||||
} else {
|
||||
vmpointer *vp = (vmpointer*) val;
|
||||
addReplyStatusFormat(c,
|
||||
|
Reference in New Issue
Block a user