Skip to content
This repository has been archived by the owner on Jul 9, 2022. It is now read-only.

Commit

Permalink
Test adding table names cache
Browse files Browse the repository at this point in the history
  • Loading branch information
ktmud committed Nov 10, 2020
1 parent 777a84c commit e13485c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tests/superset_test_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@ def GET_FEATURE_FLAGS_FUNC(ff):
PUBLIC_ROLE_LIKE = "Gamma"
AUTH_ROLE_PUBLIC = "Public"
EMAIL_NOTIFICATIONS = False
CACHE_CONFIG = {"CACHE_TYPE": "simple"}
REDIS_HOST = os.environ.get("REDIS_HOST", "localhost")
REDIS_PORT = os.environ.get("REDIS_PORT", "6379")
REDIS_CELERY_DB = os.environ.get("REDIS_CELERY_DB", 2)
Expand All @@ -88,6 +87,11 @@ def GET_FEATURE_FLAGS_FUNC(ff):
"CACHE_REDIS_URL": f"redis://{REDIS_HOST}:{REDIS_PORT}/{REDIS_CACHE_DB}",
}

TABLE_NAMES_CACHE_CONFIG = {
**CACHE_CONFIG,
"CACHE_KEY_PREFIX": "superset_table_names_cache",
}


class CeleryConfig(object):
BROKER_URL = f"redis://{REDIS_HOST}:{REDIS_PORT}/{REDIS_CELERY_DB}"
Expand Down

0 comments on commit e13485c

Please sign in to comment.