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

Function flush_db_sync

monkey/monkey.py:216–221  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

214 asyncore.close_all()
215
216def flush_db_sync():
217 server = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
218 server.connect(('127.0.0.1', 6379))
219 server.send(_buildResp("flushdb"))
220 resp = server.recv(8192)
221 assert(resp[:3] == "+OK".encode('utf-8'))
222
223def init_blocking():
224 global clients

Callers 1

mainFunction · 0.85

Calls 2

_buildRespFunction · 0.85
sendMethod · 0.45

Tested by

no test coverage detected