Skip to content

Typing

KeyBuilder module-attribute

KeyBuilder = Callable[[Request], str]

RouteHandler module-attribute

RouteHandler = Callable[
    [Request], Coroutine[Any, Any, Response]
]

CacheParamsBase

Bases: TypedDict

Cache parameters to be passed to aiocache.

CacheParams

Bases: CacheParamsBase

Cache parameters for a specific endpoint.

CachedResponse

Bases: TypedDict

Response data to be stored in cache.