mirror of
https://github.com/fluencelabs/redis
synced 2025-06-25 06:51:32 +00:00
Specify LRU resolution in milliseconds.
This commit is contained in:
@ -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 */
|
||||
|
Reference in New Issue
Block a user