Skip to main content

Crate djangors_cache

Crate djangors_cache 

Source
Expand description

Raw-byte caches, common backends, and explicitly opted-in response caching.

Structs§

CacheLayer
Tower middleware layer for caching responses marked with CacheableResponse.
CacheService
Tower service middleware that intercepts GET requests and serves/caches responses.
CacheableResponse
Request/response extension marker indicating that a response is cacheable by CacheLayer.
DatabaseCache
A database-backed cache backend storing entries in djangors_cache_entries.
InMemoryCache
An in-memory cache backend powered by Moka.

Enums§

CacheError
Errors encountered during cache access or value serialization.

Traits§

Cache
An object-safe cache of raw byte values.
CacheExt
Extension trait providing convenient get_or_set helpers on any Cache.

Functions§

get_or_set_fragment
Helper function to retrieve or compute a template fragment or raw byte cache entry.