Skip to main content

Module cache

Module cache 

Source
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§

SettlementCache
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.