MCPcopy Create free account
hub / github.com/Snapchat/KeyDB / createHashObject

Function createHashObject

src/object.cpp:283–288  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

281}
282
283robj *createHashObject(void) {
284 unsigned char *zl = ziplistNew();
285 robj *o = createObject(OBJ_HASH, zl);
286 o->encoding = OBJ_ENCODING_ZIPLIST;
287 return o;
288}
289
290robj *createZsetObject(void) {
291 zset *zs = (zset*)zmalloc(sizeof(*zs), MALLOC_SHARED);

Callers 3

rdbLoadObjectFunction · 0.85
moduleCreateEmptyKeyFunction · 0.85

Calls 2

ziplistNewFunction · 0.85
createObjectFunction · 0.85

Tested by

no test coverage detected