Experimental: Alpha Release
This crate is in early development. APIs are unstable and may change without notice. Not recommended for production use yet.
HTTP Cache Tags Actix Integration
This crate extends the core http_cache_tags_core library to provide Actix-web specific middleware, extractors, and API handlers.
It enables tag-based HTTP cache invalidation, cache metadata resolution, and response validation tailored for Actix applications.
Features
The available features mirror those from the core crate and are propagated through this integration:
- Config File (
config_filefeature): Load cache config from TOML files. - ETag Support (
etagfeature): Generate and handle weak ETags. - Last-Modified Support (
last_modifiedfeature): Track resource modification timestamps. - Redis Integration (
redisfeature): Use Redis as a persistent backend for cache metadata.
Components
This crate provides:
- Actix middleware to inject cache headers like
ETag,Last-Modified, andCache-Control. - Extractors for retrieving validated JSON payloads and cache metadata.
- API error types and controllers compatible with Actix-web.
Example Usage
use ;
use *;
async
async
Integration Notes
Use this crate alongside http_cache_tags_core to enable full cache tagging support in Actix-web applications.
For convenience, consider using the umbrella crate http_cache_tags, which bundles all framework integrations, including Actix and Axum.