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

Function dictObjHash

src/server.cpp:1396–1400  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1394}
1395
1396uint64_t dictObjHash(const void *key) {
1397 const robj *o = (const robj*)key;
1398 void *ptr = ptrFromObj(o);
1399 return dictGenHashFunction(ptr, sdslen((sds)ptr));
1400}
1401
1402uint64_t dictSdsHash(const void *key) {
1403 return dictGenHashFunction((unsigned char*)key, sdslen((char*)key));

Callers

nothing calls this directly

Calls 3

ptrFromObjFunction · 0.85
sdslenFunction · 0.85
dictGenHashFunctionFunction · 0.70

Tested by

no test coverage detected