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

Method scan

monkey/monkey.py:143–152  ·  view source on GitHub ↗
(self, iter, match=None, count=None, callback = default_result_handler)

Source from the content-addressed store, hash-verified

141 self.callbacks.append(callback)
142
143 def scan(self, iter, match=None, count=None, callback = default_result_handler):
144 args = ["scan", str(iter)]
145 if match != None:
146 args.append("MATCH")
147 args.append(match)
148 if count != None:
149 args.append("COUNT")
150 args.append(str(count))
151 self.buf += _buildResp(*args)
152 self.callbacks.append(callback)
153
154 def get_client_id(self):
155 self.buf += _buildResp("client", "id")

Callers 2

init_lpushFunction · 0.95
scan_callbackFunction · 0.80

Calls 2

_buildRespFunction · 0.85
appendMethod · 0.80

Tested by

no test coverage detected