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

Function _buildResp

monkey/monkey.py:16–21  ·  view source on GitHub ↗
(*args)

Source from the content-addressed store, hash-verified

14clients = []
15
16def _buildResp(*args):
17 result = "*" + str(len(args)) + "\r\n"
18 for v in args:
19 result = result + "$" + str(len(v)) + "\r\n"
20 result = result + v + "\r\n"
21 return result.encode('utf-8')
22
23class Client(asyncore.dispatcher):
24 def __init__(self, host, port):

Callers 8

setMethod · 0.85
lpushMethod · 0.85
blpopMethod · 0.85
deleteMethod · 0.85
unblockMethod · 0.85
scanMethod · 0.85
get_client_idMethod · 0.85
flush_db_syncFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected