Crate salvo_cache

source ·
Expand description

Cache middleware for Salvo web framework.

Cache middleware for Salvo designed to intercept responses and cache them. This middleware will cache the response’s StatusCode, Headers and Body.

You can define your custom CacheIssuer to determine which responses should be cached, or you can use the default RequestIssuer.

The default cache store is MokaStore, which is a wrapper of moka. You can define your own cache store by implementing CacheStore.

Example: cache-simple Read more: https://salvo.rs

Re-exports§

Modules§

Structs§

Enums§

  • CachedBody is used to save response body to CachedStore.

Traits§