Configuration¶
Configuration for Invenio-Cache module.
By default the module is configured to use a Redis database 0 on localhost. The underlying Flask-Caching module however supports many other cahe backends.
For how to configure other cache backends please refer to the Flask-Caching documentation.
-
invenio_cache.config.
CACHE_IS_AUTHENTICATED_CALLBACK
= None¶ Import path to callback.
Callback is executed to determine if request is authenticated.
-
invenio_cache.config.
CACHE_KEY_PREFIX
= 'cache::'¶ Cache key prefix.
-
invenio_cache.config.
CACHE_REDIS_URL
= 'redis://localhost:6379/0'¶ Redis location and database.
-
invenio_cache.config.
CACHE_TYPE
= 'redis'¶ Cache type.
Please refer to Flask-Caching documentation for other cache types.