Skip to main content

Crate mx_cache

Crate mx_cache 

Source
Expand description

Shared cache utilities for MultiversX Rust services.

Provides a simple async-friendly Cache trait plus Redis and local implementations with TTL semantics.

§Re-exports

This crate re-exports the redis crate for use by dependent crates, allowing them to access low-level Redis functionality without adding a direct dependency.

Re-exports§

pub use set::RedisSet;
pub use ::redis;

Modules§

mock
Mock implementations for testing without external dependencies. Mock implementations for testing cache operations without external dependencies.
set

Structs§

LocalCache
Local in-memory cache with per-entry TTL support.
RedisCache

Traits§

Cache

Functions§

namespaced
Creates a namespaced key by prefixing with the given prefix.