python – redis-py:StrictRedis()和Redis()有什么区别?

我想使用redis-py来缓存一些数据。我找不到合适的解释redis.StrictRedis()和redis.Redis()之间的区别! Redis()等价于StrictRedis()吗?

此外,我找不到任何明确的文档关于redis.StrictRedis()参数在Redis Python Docs
任何想法?

This seems pretty clear

 redis-py exposes two client classes that implement these commands
 The StrictRedis class attempts to adhere to the official command syntax.

In addition to the changes above, the Redis class, a subclass of StrictRedis,
overrides several other commands to provide backwards compatibility with older
versions of redis-py

你需要向后兼容性吗?使用Redis。不在乎?使用StrictRedis。

http://stackoverflow.com/questions/19021765/redis-py-whats-the-difference-between-strictredis-and-redis

本站文章除注明转载外,均为本站原创或编译
转载请明显位置注明出处:python – redis-py:StrictRedis()和Redis()有什么区别?