本文整理汇总了Python中org.cyy.fw.piedis.Response.toInt方法的典型用法代码示例。如果您正苦于以下问题:Python Response.toInt方法的具体用法?Python Response.toInt怎么用?Python Response.toInt使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.cyy.fw.piedis.Response
的用法示例。
在下文中一共展示了Response.toInt方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: bitCount
# 需要导入模块: from org.cyy.fw.piedis import Response [as 别名]
# 或者: from org.cyy.fw.piedis.Response import toInt [as 别名]
def bitCount(self, key, start, end):
args = [key]
if start != None:
args.append(str(start))
if end != None:
args.append(str(end))
resp = self.sendCommand(Command.BITCOUNT, *tuple(args))
return Response.toInt(resp)
示例2: zUnionStore
# 需要导入模块: from org.cyy.fw.piedis import Response [as 别名]
# 或者: from org.cyy.fw.piedis.Response import toInt [as 别名]
def zUnionStore(self, destKey, params, key, *moreKeys):
args = (destKey,)
numberKeys = 1 + len(moreKeys)
args += (numberKeys, key)
args += moreKeys
if params != None:
args += params.getParams()
resp = self.sendCommand(Command.ZUNIONSTORE, *args)
return Response.toInt(resp)
示例3: move
# 需要导入模块: from org.cyy.fw.piedis import Response [as 别名]
# 或者: from org.cyy.fw.piedis.Response import toInt [as 别名]
def move(self, key, destDb):
resp = self.sendCommand(Command.MOVE, key, str(destDb))
return Response.toInt(resp) == 1
示例4: rPush
# 需要导入模块: from org.cyy.fw.piedis import Response [as 别名]
# 或者: from org.cyy.fw.piedis.Response import toInt [as 别名]
def rPush(self, key, value, *moreValues):
resp = self.sendCommand(Command.RPUSH, key, value, *moreValues)
return Response.toInt(resp)
示例5: zCount
# 需要导入模块: from org.cyy.fw.piedis import Response [as 别名]
# 或者: from org.cyy.fw.piedis.Response import toInt [as 别名]
def zCount(self, key, Min, Max):
resp = self.sendCommand(Command.ZCOUNT, key, str(Min), str(Max))
return Response.toInt(resp)
示例6: lInsert
# 需要导入模块: from org.cyy.fw.piedis import Response [as 别名]
# 或者: from org.cyy.fw.piedis.Response import toInt [as 别名]
def lInsert(self, key, value, pivot, isBefore):
extraParam = RedisKeyword.BEFORE
if not isBefore:
extraParam = RedisKeyword.AFTER
resp = self.sendCommand(Command.LINSERT, key, extraParam, pivot, value)
return Response.toInt(resp)
示例7: pTTL
# 需要导入模块: from org.cyy.fw.piedis import Response [as 别名]
# 或者: from org.cyy.fw.piedis.Response import toInt [as 别名]
def pTTL(self, key):
resp = self.sendCommand(Command.PTTL, key)
return Response.toInt(resp)
示例8: zRemRangeByScore
# 需要导入模块: from org.cyy.fw.piedis import Response [as 别名]
# 或者: from org.cyy.fw.piedis.Response import toInt [as 别名]
def zRemRangeByScore(self, key, Min, Max):
resp = self.sendCommand(Command.ZREMRANGEBYSCORE, key, str(Min), str(Max))
return Response.toInt(resp)
示例9: zRevRank
# 需要导入模块: from org.cyy.fw.piedis import Response [as 别名]
# 或者: from org.cyy.fw.piedis.Response import toInt [as 别名]
def zRevRank(self, key, member):
resp = self.sendCommand(Command.ZREVRANK, key, member)
return Response.toInt(resp)
示例10: sDiffStore
# 需要导入模块: from org.cyy.fw.piedis import Response [as 别名]
# 或者: from org.cyy.fw.piedis.Response import toInt [as 别名]
def sDiffStore(self, destKey, key, *moreKeys):
resp = self.sendCommand(Command.SDIFFSTORE, destKey, key, *moreKeys)
return Response.toInt(resp)
示例11: sInterStore
# 需要导入模块: from org.cyy.fw.piedis import Response [as 别名]
# 或者: from org.cyy.fw.piedis.Response import toInt [as 别名]
def sInterStore(self, destKey, key, *moreKeys):
resp = self.sendCommand(Command.SINTERSTORE, destKey, key, *moreKeys)
return Response.toInt(resp)
示例12: sAdd
# 需要导入模块: from org.cyy.fw.piedis import Response [as 别名]
# 或者: from org.cyy.fw.piedis.Response import toInt [as 别名]
def sAdd(self, key, member, *moreMember):
resp = self.sendCommand(Command.SADD, key, member, *moreMember)
return Response.toInt(resp)
示例13: expireAt
# 需要导入模块: from org.cyy.fw.piedis import Response [as 别名]
# 或者: from org.cyy.fw.piedis.Response import toInt [as 别名]
def expireAt(self, key, ts):
resp = self.sendCommand(Command.EXPIREAT, key, str(ts))
return Response.toInt(resp) == 1
示例14: lREM
# 需要导入模块: from org.cyy.fw.piedis import Response [as 别名]
# 或者: from org.cyy.fw.piedis.Response import toInt [as 别名]
def lREM(self, key, value, count):
resp = self.sendCommand(Command.LREM, key, count, value)
return Response.toInt(resp)
示例15: lLen
# 需要导入模块: from org.cyy.fw.piedis import Response [as 别名]
# 或者: from org.cyy.fw.piedis.Response import toInt [as 别名]
def lLen(self, key):
resp = self.sendCommand(Command.LLEN, key)
return Response.toInt(resp)