superset-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From maximebeauche...@apache.org
Subject [incubator-superset] branch master updated: Added Example snippet for setting up Redis cache (#4434)
Date Fri, 16 Feb 2018 04:27:10 GMT
This is an automated email from the ASF dual-hosted git repository.

maximebeauchemin pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-superset.git


The following commit(s) were added to refs/heads/master by this push:
     new 9478291  Added Example snippet for setting up Redis cache (#4434)
9478291 is described below

commit 9478291bf69f538b535f294035dc44396fdf177a
Author: Hugh A. Miles II <hughmil3s@gmail.com>
AuthorDate: Thu Feb 15 20:27:03 2018 -0800

    Added Example snippet for setting up Redis cache (#4434)
    
    * Added Example snippet for setting up Redis cache
    
    * Update installation.rst
    
    * Update installation.rst
---
 docs/installation.rst | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/docs/installation.rst b/docs/installation.rst
index b485cce..a2d3a64 100644
--- a/docs/installation.rst
+++ b/docs/installation.rst
@@ -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

-- 
To stop receiving notification emails like this one, please contact
maximebeauchemin@apache.org.

Mime
View raw message