结构定义
在redis中,对象的数据结构定义如下:
typedef struct redisObject {
unsigned type:4;
unsgined encoding:4;
unsigned lru:LRU_BITS;
int refcount;
void *ptr;
}typedef struct r在redis中,对象的数据结构定义如下:
typedef struct redisObject {
unsigned type:4;
unsgined encoding:4;
unsigned lru:LRU_BITS;
int refcount;
void *ptr;
}typedef struct r