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

Function dictObjKeyCompare

src/server.cpp:1389–1394  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1387}
1388
1389int dictObjKeyCompare(void *privdata, const void *key1,
1390 const void *key2)
1391{
1392 const robj *o1 = (const robj*)key1, *o2 = (const robj*)key2;
1393 return dictSdsKeyCompare(privdata,ptrFromObj(o1),ptrFromObj(o2));
1394}
1395
1396uint64_t dictObjHash(const void *key) {
1397 const robj *o = (const robj*)key;

Callers

nothing calls this directly

Calls 2

ptrFromObjFunction · 0.85
dictSdsKeyCompareFunction · 0.70

Tested by

no test coverage detected