Calculate keyslot for a given key. See Keys distribution model in https://redis.io/topics/cluster-spec
(self, key)
| 1363 | return self.reinitialize_counter % self.reinitialize_steps == 0 |
| 1364 | |
| 1365 | def keyslot(self, key): |
| 1366 | """ |
| 1367 | Calculate keyslot for a given key. |
| 1368 | See Keys distribution model in https://redis.io/topics/cluster-spec |
| 1369 | """ |
| 1370 | k = self.encoder.encode(key) |
| 1371 | return key_slot(k) |
| 1372 | |
| 1373 | def _get_command_keys(self, *args): |
| 1374 | """ |