Closed YouJinTou closed 22 hours ago
redis_version = self._redis.info['redis_version'] is_supported = Version(str(redis_version)) >= Version('2.6.0')
This does not work on Amazon's ElastiCache as redis_version is a number, and Version() blows up with expected string or a byte-like object....
redis_version
Version()
expected string or a byte-like object...
I think this is fixed by #34
https://pypi.org/project/python-redis-rate-limit/0.0.10/
redis_version = self._redis.info['redis_version'] is_supported = Version(str(redis_version)) >= Version('2.6.0')
This does not work on Amazon's ElastiCache as
redis_version
is a number, andVersion()
blows up withexpected string or a byte-like object...
.