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

Function dictCreate

src/dict.cpp:110–117  ·  view source on GitHub ↗

Create a new hash table */

Source from the content-addressed store, hash-verified

108
109/* Create a new hash table */
110dict *dictCreate(dictType *type,
111 void *privDataPtr)
112{
113 dict *d = (dict*)zmalloc(sizeof(*d), MALLOC_SHARED);
114
115 _dictInit(d,type,privDataPtr);
116 return d;
117}
118
119/* Initialize the hash table */
120int _dictInit(dict *d, dictType *type,

Callers 15

initializeMethod · 0.70
clearMethod · 0.70
processChangesMethod · 0.70
processChangesAsyncMethod · 0.70
redisDbPersistentDataMethod · 0.70
removeAllCachedValuesMethod · 0.70
StorageCacheMethod · 0.70
clearAsyncMethod · 0.70
latencyMonitorInitFunction · 0.70
dictTestFunction · 0.70
clusterInitFunction · 0.70
hashTypeConvertZiplistFunction · 0.70

Calls 2

zmallocFunction · 0.85
_dictInitFunction · 0.70

Tested by

no test coverage detected