Available on crate feature
cache only.Expand description
Shared cache primitives used by facilitator implementations.
This module is only compiled with the cache feature flag. The types
are intentionally minimal wrappers over moka::sync::Cache tuned for
x402 use cases (bounded capacity, short TTL, Send + Sync + Clone).
Structs§
- Settlement
Cache - Chain-agnostic deduplication cache for facilitator settlement requests.
- TtlSet
- A Send+Sync cache of string keys with bounded capacity and TTL expiry.
Enums§
- Duplicate
- Outcome of a cache reservation call.
Constants§
- DEFAULT_
SETTLEMENT_ CAPACITY - Default upper bound on tracked settlement identifiers.
- DEFAULT_
SETTLEMENT_ TTL - Spec-recommended TTL for cross-chain settlement deduplication.