Skip to content

cache

Application cache config.

config module-attribute

config = CacheConfig(
    backend=redis.client,
    expiration=settings.api.CACHE_EXPIRATION,
    cache_key_builder=cache_key_builder,
)

Cache configuration for application.

cache_key_builder

cache_key_builder(request)

App name prefixed cache key builder.

Parameters

Request

Current request instance.

Returns

str App slug prefixed cache key.