Quantcast
Channel: 🎛️ Dash - Plotly Community Forum
Viewing all articles
Browse latest Browse all 6271

Server side caching using redis

$
0
0

Hello!

I am trying to replicate example 4 in this part of the documentation, using redis cache instead. I am not exactly sure how to configure the cache properly. Assuming that I have my redis DB set up, is it enough to add:

cache = Cache(app.server, config={
    'CACHE_TYPE': 'redis',
    'CACHE_REDIS_URL': 'redis://{}:{}'.format(REDIS_HOST, REDIS_PORT),
    'CACHE_DEFAULT_TIMEOUT': 450
})

What happens with CACHE_THRESHOLD? Is this not necessary? (reading the flask cache documentation it seems like this parameter is not used for redis).

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 6271

Latest Images

Trending Articles



Latest Images