本文整理汇总了Python中org.cyy.fw.piedis.Response.toStr方法的典型用法代码示例。如果您正苦于以下问题:Python Response.toStr方法的具体用法?Python Response.toStr怎么用?Python Response.toStr使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.cyy.fw.piedis.Response
的用法示例。
在下文中一共展示了Response.toStr方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: restore
# 需要导入模块: from org.cyy.fw.piedis import Response [as 别名]
# 或者: from org.cyy.fw.piedis.Response import toStr [as 别名]
def restore(self, key, serialValue, millTTL, replace):
if replace :
resp = self.sendCommand(Command.RESTORE, key, str(millTTL), serialValue, RedisKeyword.REPLACE)
return Response.toStr(resp)
else:
resp = self.sendCommand(Command.RESTORE, key, str(millTTL), serialValue)
return Response.toStr(resp)
示例2: set
# 需要导入模块: from org.cyy.fw.piedis import Response [as 别名]
# 或者: from org.cyy.fw.piedis.Response import toStr [as 别名]
def set(self, key, value):
resp = self.sendCommand(Command.SET, key, str(value))
return Response.toStr(resp)
示例3: rename
# 需要导入模块: from org.cyy.fw.piedis import Response [as 别名]
# 或者: from org.cyy.fw.piedis.Response import toStr [as 别名]
def rename(self, key, newKey):
resp = self.sendCommand(Command.RENAME, key, newKey)
return Response.toStr(resp)
示例4: scriptKill
# 需要导入模块: from org.cyy.fw.piedis import Response [as 别名]
# 或者: from org.cyy.fw.piedis.Response import toStr [as 别名]
def scriptKill(self):
resp = self.sendCommand(Command.SCRIPT, RedisKeyword.KILL)
return Response.toStr(resp)
示例5: objectEncoding
# 需要导入模块: from org.cyy.fw.piedis import Response [as 别名]
# 或者: from org.cyy.fw.piedis.Response import toStr [as 别名]
def objectEncoding(self, key):
resp = self.sendCommand(Command.OBJECT, RedisKeyword.ENCODING, key)
return Response.toStr(resp)
示例6: flushDB
# 需要导入模块: from org.cyy.fw.piedis import Response [as 别名]
# 或者: from org.cyy.fw.piedis.Response import toStr [as 别名]
def flushDB(self):
resp = self.sendCommand(Command.FLUSHDB)
return Response.toStr(resp)
示例7: quit
# 需要导入模块: from org.cyy.fw.piedis import Response [as 别名]
# 或者: from org.cyy.fw.piedis.Response import toStr [as 别名]
def quit(self):
resp = self.sendCommand(Command.QUIT)
return Response.toStr(resp)
示例8: echo
# 需要导入模块: from org.cyy.fw.piedis import Response [as 别名]
# 或者: from org.cyy.fw.piedis.Response import toStr [as 别名]
def echo(self, message):
resp = self.sendCommand(Command.ECHO, message)
return Response.toStr(resp)
示例9: hMSet
# 需要导入模块: from org.cyy.fw.piedis import Response [as 别名]
# 或者: from org.cyy.fw.piedis.Response import toStr [as 别名]
def hMSet(self, key, keyValuePair, *moreKeyValuePairs):
args = Command.combineArgs(keyValuePair, *moreKeyValuePairs)
resp = self.sendCommand(Command.HMSET, key, *args)
return Response.toStr(resp)
示例10: hGet
# 需要导入模块: from org.cyy.fw.piedis import Response [as 别名]
# 或者: from org.cyy.fw.piedis.Response import toStr [as 别名]
def hGet(self, key, field):
resp = self.sendCommand(Command.HGET, key, field)
return Response.toStr(resp)
示例11: pSetEX
# 需要导入模块: from org.cyy.fw.piedis import Response [as 别名]
# 或者: from org.cyy.fw.piedis.Response import toStr [as 别名]
def pSetEX(self, key, millSeconds, value):
resp = self.sendCommand(Command.PSETEX, key, str(millSeconds), value)
return Response.toStr(resp)
示例12: setEX
# 需要导入模块: from org.cyy.fw.piedis import Response [as 别名]
# 或者: from org.cyy.fw.piedis.Response import toStr [as 别名]
def setEX(self, key, seconds, value):
resp = self.sendCommand(Command.SETEX, key, str(seconds), value)
return Response.toStr(resp)
示例13: getSet
# 需要导入模块: from org.cyy.fw.piedis import Response [as 别名]
# 或者: from org.cyy.fw.piedis.Response import toStr [as 别名]
def getSet(self, key, value):
resp = self.sendCommand(Command.GETSET, key, value)
return Response.toStr(resp)
示例14: getRange
# 需要导入模块: from org.cyy.fw.piedis import Response [as 别名]
# 或者: from org.cyy.fw.piedis.Response import toStr [as 别名]
def getRange(self, key, start, end):
resp = self.sendCommand(Command.GETRANGE, key, str(start), str(end))
return Response.toStr(resp)
示例15: get
# 需要导入模块: from org.cyy.fw.piedis import Response [as 别名]
# 或者: from org.cyy.fw.piedis.Response import toStr [as 别名]
def get(self, key):
resp = self.sendCommand(Command.GET, key)
return Response.toStr(resp)