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

Method find

src/t_nhash.cpp:64–72  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

62 {}
63
64 dict_iter find(const char *key) {
65 if (m_db != nullptr) {
66 return m_db->find(key);
67 } else if (m_dict != nullptr) {
68 dictEntry *de = dictFind(m_dict, key);
69 return dict_iter(m_dict, de);
70 }
71 return dict_iter(nullptr);
72 }
73
74 bool add(sds key, robj *val) {
75 bool result = false;

Callers 15

parse_arrayMethod · 0.45
parse_responseMethod · 0.45
lookupKeyFunction · 0.45
lookupKeyConstFunction · 0.45
dbOverwriteFunction · 0.45
dbMergeFunction · 0.45
removeExpireFunction · 0.45
setExpireFunction · 0.45
endEpochMethod · 0.45
enqueueMethod · 0.45
touchAllWatchedKeysInDbFunction · 0.45
performEvictionsFunction · 0.45

Calls 2

dict_iterClass · 0.85
dictFindFunction · 0.70

Tested by 15

insertMethod · 0.36
eraseMethod · 0.36
retrieveMethod · 0.36
skip_to_next_entryMethod · 0.36
skip_to_next_kpageMethod · 0.36
get_numa_policyMethod · 0.36
get_total_memoryMethod · 0.36
CommandLineMethod · 0.36
is_enabledMethod · 0.36
SplitStringFunction · 0.36
GetIdMethod · 0.36
IsSubstringPredFunction · 0.36