Added Example snippet for setting up Redis cache (#4434)

* Added Example snippet for setting up Redis cache

* Update installation.rst

* Update installation.rst
This commit is contained in:
Hugh A. Miles II 2018-02-15 20:27:03 -08:00 committed by Maxime Beauchemin
parent 4ee0833b27
commit 9478291bf6
1 changed files with 10 additions and 0 deletions

View File

@ -349,6 +349,16 @@ For setting your timeouts, this is done in the Superset metadata and goes
up the "timeout searchpath", from your slice configuration, to your
data source's configuration, to your database's and ultimately falls back
into your global default defined in ``CACHE_CONFIG``.
.. code-block:: python
CACHE_CONFIG = {
'CACHE_TYPE': 'redis',
'CACHE_DEFAULT_TIMEOUT': 60 * 60 * 24, # 1 day default (in secs)
'CACHE_KEY_PREFIX': 'superset_results',
'CACHE_REDIS_URL': 'redis://localhost:6379/0',
}
Deeper SQLAlchemy integration