API Docs

Cache module for Invenio.

class invenio_cache.ext.InvenioCache(app=None)[source]

Invenio-Cache extension.

Extension initialization.

init_app(app)[source]

Flask application initialization.

init_config(app)[source]

Initialize configuration.

Decorators

Decorators to help with caching.

invenio_cache.decorators.cached_unless_authenticated(timeout=50, key_prefix='default')[source]

Cache anonymous traffic.

Proxies

Helper proxies.

invenio_cache.proxies.current_cache = <LocalProxy unbound>

Helper proxy to access cache object.

invenio_cache.proxies.current_cache_ext = <LocalProxy unbound>

Helper proxy to access cache extension object.

Bytecode cache

Jinja bytecode cache for Redis.

class invenio_cache.bccache.BytecodeCache(app)[source]

A bytecode cache.

Initialize BytecodeCache.