http_cache_tags_axum

Crates.iohttp_cache_tags_axum
lib.rshttp_cache_tags_axum
version0.1.0-alpha.5
created_at2025-07-24 16:50:27.612626+00
updated_at2025-07-30 13:09:44.512115+00
descriptionAn experimental cache tagging library for axum
homepage
repositoryhttps://gitlab.com/dkluhzeb/http_cache_tags
max_upload_size
id1766297
size87,941
(dkluhzeb)

documentation

https://docs.rs/http_cache_tags_axum

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 Axum Integration

This crate extends the core http_cache_tags_core library to provide Axum specific middleware, extractors, and API handlers.

It enables tag-based HTTP cache invalidation, cache metadata resolution, and response validation tailored for Axum 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:

  • Axum 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 Axum.

Integration Notes

Use this crate alongside http_cache_tags_core to enable full cache tagging support in Axum 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