mirror of
https://github.com/apache/superset.git
synced 2026-04-19 16:14:52 +00:00
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:
committed by
Maxime Beauchemin
parent
4ee0833b27
commit
9478291bf6
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user