67 releases (29 breaking)
0.67.0 | Apr 8, 2024 |
---|---|
0.66.2 | Mar 6, 2024 |
0.66.1 | Feb 28, 2024 |
0.63.1 | Dec 21, 2023 |
0.37.6 | Nov 29, 2022 |
#866 in HTTP server
2,319 downloads per month
Used in salvo
655KB
15K
SLoC
salvo-cache
Cache middleware for Savlo.
This is offical crate, so you can enable it in Cargo.toml
like this:
salvo = { version = "*", features=["cache"] }
lib.rs
:
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
Dependencies
~19–35MB
~594K SLoC