Specify LRU resolution in milliseconds.

This commit is contained in:
antirez
2014-03-20 11:33:25 +01:00
parent fe30847016
commit d77e231682
4 changed files with 4 additions and 5 deletions

View File

@ -384,7 +384,7 @@ typedef long long mstime_t; /* millisecond time type. */
/* The actual Redis Object */
#define REDIS_LRU_BITS 22
#define REDIS_LRU_CLOCK_MAX ((1<<REDIS_LRU_BITS)-1) /* Max value of obj->lru */
#define REDIS_LRU_CLOCK_RESOLUTION 10 /* LRU clock resolution in seconds */
#define REDIS_LRU_CLOCK_RESOLUTION 10000 /* LRU clock resolution in ms */
typedef struct redisObject {
unsigned type:4;
unsigned notused:2; /* Not used */