(self, iter, match=None, count=None, callback = default_result_handler)
| 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") |
no test coverage detected