[package]
name = "mx-cache"
version = "0.1.0"
edition = "2024"
license = "MIT OR Apache-2.0"
description = "Shared cache utilities (local + Redis) for MultiversX Rust services."
repository = "https://github.com/multiversx/mx-chain-rust"
readme = "README.md"
documentation = "https://docs.rs/mx-cache"
keywords = ["multiversx", "cache", "redis", "moka", "blockchain"]
categories = ["caching", "database"]
include = [
"Cargo.toml",
"README.md",
"src/**/*.rs",
]
[dependencies]
anyhow = { workspace = true }
bytes = { workspace = true }
equivalent = "1.0"
moka = { version = "0.12.10", features = ["sync"] }
redis = { version = "0.32.7", default-features = false, features = [
"aio",
"tokio-comp",
"connection-manager",
"tokio-rustls-comp",
"sentinel",
] }
tracing = { workspace = true }
[dev-dependencies]
tokio = { workspace = true, features = ["rt-multi-thread", "macros", "time", "test-util"] }
tokio-test = "0.4"
proptest = "1.6"
futures = "0.3"
[lints]
workspace = true