Difficulty Using Flask-Cache with Redis (Windows System)


I’m trying to implement a Redis-based file caching system for my Dash app using the flask-cache library. I copy/pasted the example code here from the Dash documentation.

When I run the code and click one of the options, I get the following error:

AttributeError: ‘Flask’ object has no attribute ‘mget’

Does anyone know how to remedy this issue?

Any help would be much appreciated!

Hi, according to flask-cache you probably don’t have proper client installed. https://github.com/thadeusb/flask-cache/issues/92 since officially redis does not support windows, what version did you install? I got to work it on Windows 10 with Linux subsystem like described here https://redislabs.com/blog/redis-on-windows-10/

Yup, you were right. I reinstalled Redis and it worked fine.

Thanks a lot!