pallets-eco/cachelib

redis import error

sunurdy opened this issue · 0 comments

https://github.com/pallets/cachelib/blob/3acb0c5856f32449e2863cca3eb5890a825a61b2/cachelib/redis.py#L39-L47

When using redis as cache backend, it will raise an AttributeError: 'module' object has no attribute 'Redis'. It will import cachelib.redis instead of redis because the filename is the same.