Ejemplo n.º 1
0
 def hMSet(self, key, keyValuePair, *moreKeyValuePairs):
     args = Command.combineArgs(keyValuePair, *moreKeyValuePairs)
     resp = self.sendCommand(Command.HMSET, key, *args)
     return Response.toStr(resp)
Ejemplo n.º 2
0
 def zAdd(self, key, scoreMember, *moreScoreMember):
     args = Command.combineArgsByScoreMember(scoreMember, *moreScoreMember)
     resp = self.sendCommand(Command.ZADD, key, *args)
     return Response.toInt(resp)
Ejemplo n.º 3
0
 def mSetNX(self, keyValuePair, *moreKeyValuePair):
     args = Command.combineArgs(keyValuePair, *moreKeyValuePair)
     resp = self.sendCommand(Command.MSETNX, *args)
     return Response.toInt(resp) == 1