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

Function createZiplistObject

src/object.cpp:262–267  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

260}
261
262robj *createZiplistObject(void) {
263 unsigned char *zl = ziplistNew();
264 robj *o = createObject(OBJ_LIST,zl);
265 o->encoding = OBJ_ENCODING_ZIPLIST;
266 return o;
267}
268
269robj *createSetObject(void) {
270 dict *d = dictCreate(&setDictType,NULL);

Callers 1

nhsetCommandFunction · 0.85

Calls 2

ziplistNewFunction · 0.85
createObjectFunction · 0.85

Tested by

no test coverage detected