67 releases (29 breaking)

new 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

#739 in HTTP server

Download history 231/week @ 2023-12-22 185/week @ 2023-12-29 231/week @ 2024-01-05 279/week @ 2024-01-12 240/week @ 2024-01-19 207/week @ 2024-01-26 219/week @ 2024-02-02 321/week @ 2024-02-09 626/week @ 2024-02-16 802/week @ 2024-02-23 905/week @ 2024-03-01 1514/week @ 2024-03-08 584/week @ 2024-03-15 455/week @ 2024-03-22 614/week @ 2024-03-29 527/week @ 2024-04-05

2,286 downloads per month
Used in salvo

MIT/Apache

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"] }

Docs


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–36MB
~598K SLoC