title: Plotly Dash server side caching using redis
body: <p>I am trying to replicate example 4 in <a href="https://dash.plotly.com/sharing-data-between-callbacks" rel="nofollow noreferrer">this part</a> of the Plotly Dash documentation, using redis cache instead. I am not sure how to configure the cache properly. Assuming that I have my redis DB set up, is it enough to add:</p>
  <pre><code>cache = Cache(app.server, config={
      'CACHE_TYPE': 'redis',
      'CACHE_REDIS_URL': redis_url,
      'CACHE_DEFAULT_TIMEOUT': 450
  })
  </code></pre>
  <p>What happens if I want to use <code>CACHE_THRESHOLD</code>? Is this not necessary? (reading the <a href="https://pythonhosted.org/Flask-Cache/" rel="nofollow noreferrer">flask cache documentation</a> it seems like this parameter is not used for redis).</p>