
Redis
redis 讲解
lxlmycsdnfree
90后、985毕业,综合信息化方案架构师与解决方案专家,华为资深架构师,脑科学与精神健康理疗咨询师,资深心理咨询师,助力并解决众多精神健康群体。vx:forSevenCool 欢迎来撩~
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
redis源码中crc64算法源码
#include static const uint64_t crc64_tab[256] = { UINT64_C(0x0000000000000000), UINT64_C(0x7ad870c830358979), UINT64_C(0xf5b0e190606b12f2), UINT64_C(0x8f689158505e9b8b), UINT64_C(0xc038e原创 2018-01-18 11:02:20 · 1307 阅读 · 0 评论 -
redis 源码 dict.c 实现
dict.c文件代码:#include "fmacros.h"#include #include #include #include #include #include #include #include "dict.h"#include "zmalloc.h"#include "redisassert.h"/* Using dictEnableResize() /原创 2018-01-18 11:05:58 · 474 阅读 · 0 评论 -
reids源码 t_hash.c 实现
t_hash.c文件代码:#include "redis.h"#include /*----------------------------------------------------------------------------- * Hash type API *--------------------------------------------------------原创 2018-01-18 11:10:22 · 330 阅读 · 0 评论 -
redis 源码 zmalloc.c 实现
zmalloc.c 文件源代码:#include #include /* This function provide us access to the original libc free(). This is useful * for instance to free results obtained by backtrace_symbols(). We need * to de原创 2018-01-18 11:16:13 · 414 阅读 · 0 评论 -
redis 源码 ziplist.c 压缩list的实现
ziplist.c代码实现:#include #include #include #include #include #include "zmalloc.h"#include "util.h"#include "ziplist.h"#include "endianconv.h"#include "redisassert.h"#define ZIP_END 255#d原创 2018-01-18 11:18:53 · 361 阅读 · 0 评论 -
redis 源码 object.c 实现
object.c 代码实现:#include "redis.h"#include #include #ifdef __CYGWIN__#define strtold(a,b) ((long double)strtod((a),(b)))#endifrobj *createObject(int type, void *ptr) { robj *o = zmalloc(si原创 2018-01-18 14:00:10 · 486 阅读 · 0 评论