]> git.saurik.com Git - redis.git/blobdiff - src/debug.c
non blocking loading of the DB / AOF with informations and ETA in INFO output
[redis.git] / src / debug.c
index 2f7ab58f1f4b5926186627adc278ced985d4d327..b364dd1635ad9acef4569d486ef77d331aa5f967 100644 (file)
@@ -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,