2015-06-23 17 views

回答

7

找到了答案。只需扩展一个客户类(StrictRedis或Redis)并使用它们的execute_command方法即可。

redis_client = redis.StrictRedis(host, port, db) 
data = redis_client.execute_command('custom redis command') 

https://github.com/andymccurdy/redis-py/issues/632