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

Function createSetObject

src/object.cpp:269–274  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

267}
268
269robj *createSetObject(void) {
270 dict *d = dictCreate(&setDictType,NULL);
271 robj *o = createObject(OBJ_SET,d);
272 o->encoding = OBJ_ENCODING_HT;
273 return o;
274}
275
276robj *createIntsetObject(void) {
277 intset *is = intsetNew();

Callers 3

rdbLoadObjectFunction · 0.85
setTypeCreateFunction · 0.85
setTypeDupFunction · 0.85

Calls 2

createObjectFunction · 0.85
dictCreateFunction · 0.70

Tested by

no test coverage detected