-
Notifications
You must be signed in to change notification settings - Fork 13.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Redis Caching #390
Comments
Looks like a flask-cache or werkzeug bug. CTRL-F for setex What version of these do you have locally? |
Werkzeug: 0.11.8 I figured it was a bug in Flask Cache but thought I'd check here to see if anyone has actually got it working with Redis |
I've got redis working as a cache and don't remember doing anything too acrobatic. I do remember installing the redis dependency using pip in order for things to work. What version of redis do you have installed using pip? In the mean time I'll root out my config settings. |
Well this is embarrassing but I forgot to even install redis in my Docker image. I just tried that out, installing redis 2.10.5, but unfortunately I still get the same set of errors. |
My caravel_config.py settings for the Cache are:
I'm running caravel 0.8.7 with both caravel and redis running on linked docker containers. |
Ah, so it turns out that the cache type of 'redis' does need to be used. I had tried that initially and got an error of something like 'backend does not exist', which in retrospect is probably due to not having redis installed locally. So then I tried a value of 'RedisCache', which was accepted until I ran into those errors. But the combination of 'redis' and having the redis package installed seems to work so I'll go ahead and close this issue. Thanks! |
'Flask' object has no attribute 'setex' I had a similar issue also with python Flask. in my config: 'CACHE_TYPE': redis #remove the quotes duhh! it wants "import package redis" |
I find that I'm unable to use the
RedisCache
caching type, thesimple
type works fine but when I try to hook it up to Redis and get a slice I get this (with no data):After running the query for the first time:
And then running it every time after that:
My Caravel conf looks like this:
The text was updated successfully, but these errors were encountered: