http_cache_tags_actix

Crates.iohttp_cache_tags_actix
lib.rshttp_cache_tags_actix
version0.1.0-alpha.5
created_at2025-07-24 16:53:47.229072+00
updated_at2025-07-30 13:10:39.792029+00
descriptionAn experimental cache tagging library for actix
homepage
repositoryhttps://gitlab.com/dkluhzeb/http_cache_tags
max_upload_size
id1766300
size85,039
(dkluhzeb)

documentation

https://docs.rs/http_cache_tags_actix

README

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_file feature): Load cache config from TOML files.
  • ETag Support (etag feature): Generate and handle weak ETags.
  • Last-Modified Support (last_modified feature): Track resource modification timestamps.
  • Redis Integration (redis feature): Use Redis as a persistent backend for cache metadata.

Components

This crate provides:

  • Actix middleware to inject cache headers like ETag, Last-Modified, and Cache-Control.
  • Extractors for retrieving validated JSON payloads and cache metadata.
  • API error types and controllers compatible with Actix-web.

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.

Commit count: 0

cargo fmt