我使用动态红宝石向redis添加了其他功能。我能用红宝石的命令。在python脚本中使用redis-py可以使用这些新命令吗?
发布于 2015-06-24 04:54:09
找到答案了。只需扩展其中一个客户端类(StrictRedis或Redis)并使用它们的execute_command方法。
redis_client = redis.StrictRedis(host, port, db)
data = redis_client.execute_command('custom redis command')https://stackoverflow.com/questions/31001295
复制相似问题