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

Download history 214/week @ 2024-01-02 247/week @ 2024-01-09 269/week @ 2024-01-16 242/week @ 2024-01-23 205/week @ 2024-01-30 214/week @ 2024-02-06 584/week @ 2024-02-13 555/week @ 2024-02-20 943/week @ 2024-02-27 1645/week @ 2024-03-05 683/week @ 2024-03-12 449/week @ 2024-03-19 530/week @ 2024-03-26 706/week @ 2024-04-02 575/week @ 2024-04-09 417/week @ 2024-04-16

2,319 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–35MB
~594K SLoC