thadeusb / flask-cache

Cache extension for Flask
http://packages.python.org/Flask-Cache/
Other
697 stars 185 forks source link

Redis with pasword give NOAUTH #130

Open AndreiD opened 8 years ago

AndreiD commented 8 years ago

tested it with the latest redis version. if someone could check this it would be greatly appreciated. :+1: :sunny:

    CACHE_TYPE = 'redis'
    CACHE_KEY_PREFIX = 'fcache'
    CACHE_REDIS_HOST = 'localhost'
    CACHE_REDIS_PORT = '6379'
    CACHE_REDIS_URL = 'redis://localhost:6379'
    CACHE_REDIS_PASSWORD = 'mypassword'

it only works if I comment the password in the redis.conf. If I enable password, does not work :(

thadeusb commented 8 years ago

Can you try manually connecting with the werkzeug.contrib.cache.RedisCache to see if you can narrow the error down more?

That class is the backend that flask-cache uses as a passthrough, so I think there might be either an underlying API change that did not get documented/supported properly.