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


转载请明显位置注明出处:python – redis-py:StrictRedis()和Redis()有什么区别?