salvo-caching

Installation
SKILL.md

Salvo Caching Strategies

[dependencies]
salvo = { version = "0.94.0", features = ["cache", "caching-headers"] }

The cache feature activates salvo-cache with the default moka-store backend.

Response cache middleware

salvo::cache::Cache caches full responses (status, headers, body). By default it caches GET only and skips streaming responses and error bodies.

use std::time::Duration;
use salvo::cache::{Cache, MokaStore, RequestIssuer};
use salvo::prelude::*;
Installs
26
GitHub Stars
20
First Seen
Feb 10, 2026
salvo-caching — salvo-rs/salvo-skills