hyperlane-plugin-cache 23.0.0

A 64-way sharded bounded in-memory and HTTP response cache plugin for the Hyperlane framework with TTL, byte-budget eviction, single-flight stampede coalescing, pluggable CacheStore traits, and RFC Cache-Control/Vary/Age/X-Cache handling.
Documentation

hyperlane-plugin-cache

Response & Keyed In-Memory Cache Plugin

crates.io docs.rs Rust 2024 License: MIT

Workspace Overview · API Docs


Overview

Opt-in HTTP response caching middleware with TTL eviction, cache-key customization, and safe-method cache controls.

This crate is a member of the hyperlane unified Rust 2024 workspace. All plugin crates are opt-in and transparent (Status::Continue) when unconfigured.

Responsibilities & Module Layout

  • struct / trait / impl — Cache store trait, TTL configuration, and response caching hooks

Installation

cargo add hyperlane-plugin-cache

Verification

Run crate-scoped formatting, lint, and test gates from the workspace root:

cargo run -p hyperlane-cli -- fmt --check
cargo clippy -p hyperlane-plugin-cache --all-features --all-targets -- -D warnings
cargo test -p hyperlane-plugin-cache --all-features

Documentation & Governance

License

This project is licensed under the MIT License. See the LICENSE file for details.

Contact

For inquiries, please contact the author at root@devhub.vip.