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

Function handle_blpop_response

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

Source from the content-addressed store, hash-verified

174 c.lpush("list_" + getrandomkey(), 'bardsklfjkldsjfdlsjflksdfjklsdjflksd kldsjflksd jlkdsjf lksdjklds jrfklsdjfklsdjfkl', handle_lpush_response)
175
176def handle_blpop_response(c, resp=None):
177 global ops
178 if resp != None:
179 ops['blpop'] += 1
180 c.blpop("list_" + getrandomkey(), callback=handle_blpop_response)
181
182def handle_set_response(c, resp=None):
183 global ops

Callers 1

init_blockingFunction · 0.85

Calls 2

getrandomkeyFunction · 0.85
blpopMethod · 0.80

Tested by

no test coverage detected