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

Function handle_set_response

monkey/monkey.py:182–187  ·  view source on GitHub ↗
(c, resp=None)

Source from the content-addressed store, hash-verified

180 c.blpop("list_" + getrandomkey(), callback=handle_blpop_response)
181
182def handle_set_response(c, resp=None):
183 global ops
184 if resp != None:
185 ops['set'] += 1
186 assert(resp[0] == ord('+'))
187 c.set("str_" + getrandomkey(), 'bardsklfjkldsjfdlsjflksdfjklsdjflksd kldsjflksd jlkdsjf lksdjklds jrfklsdjfklsdjfkl', handle_set_response)
188
189def handle_del_response(c, resp=None):
190 global ops

Callers

nothing calls this directly

Calls 2

getrandomkeyFunction · 0.85
setMethod · 0.45

Tested by

no test coverage detected