Redis命令参考(Keys & String)
摘要:
r = redis.Redis(ip, port, index)如此实例化一个redis对象,index取值0-15,一个redis对象有16个库。Keys函数功能返回值备注keys(self, pattern='*')返回匹配pattern的keys列表,不存在则返回空列表返回匹配pattern的keys列表,不存在则返回空列表http://www.redisdoc.com/en/latest/key/keys.htmlrandomkey(self)随机返回一个键,如果数据库为空则返回None随机返回一个键,如果数据库为空则返回Nonehttp://www.redisdoc. 阅读全文