Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
villebro committed Mar 19, 2022
1 parent 58fd5ba commit 22f52f6
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions superset/utils/cache_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@

logger = logging.getLogger(__name__)

CACHE_IMPORT_PATH = "superset.extensions.metastore_cache.SupersetMetastoreCache"


class CacheManager:
def __init__(self) -> None:
Expand Down Expand Up @@ -49,10 +51,7 @@ def _init_cache(
)
cache_key_prefix = cache_config.get("CACHE_KEY_PREFIX", cache_config_key)
cache_config.update(
{
"CACHE_TYPE": "superset.extensions.metastore_cache.SupersetMetastoreCache",
"CACHE_KEY_PREFIX": cache_key_prefix,
}
{"CACHE_TYPE": CACHE_IMPORT_PATH, "CACHE_KEY_PREFIX": cache_key_prefix}
)

if "CACHE_DEFAULT_TIMEOUT" not in cache_config:
Expand Down

0 comments on commit 22f52f6

Please sign in to comment.