Exemple #1
0
 def __init__(self, shards):
     self.nodesCache = HashRing(shards)
Exemple #2
0
class NodeSharder(NodeInfo):
    def __init__(self, shards):
        self.nodesCache = HashRing(shards)
        
    def getShardNodeInfo(self, key):
        return self.nodesCache.get_node(key)