# [1.19.0](https://github.com/asepharyana/mytheclipse/compare/v1.18.0...v1.19.0) (2026-08-29)
### Features
* criterion benchmarks proving primitive overhead is negligible ([5df04d7](https://github.com/asepharyana/mytheclipse/commit/5df04d75126d71d0790028c4a215acb571f25616))
42 lines
1.5 KiB
TOML
42 lines
1.5 KiB
TOML
[package]
|
|
name = "mytheclipse-cache"
|
|
version = "1.19.0"
|
|
edition = "2021"
|
|
rust-version = "1.75"
|
|
license = "MIT OR Apache-2.0"
|
|
repository = "https://github.com/asepharyana/mytheclipse"
|
|
homepage = "https://github.com/asepharyana/mytheclipse"
|
|
documentation = "https://docs.rs/mytheclipse-cache"
|
|
authors = ["asepharyana <superaseph@gmail.com>"]
|
|
description = "Unified multi-layer cache abstraction: L1/L2 caching, cache-aside and auto-refresh, with pluggable backends."
|
|
readme = "README.md"
|
|
keywords = ["cache", "lru", "redis", "multilayer", "cache-aside"]
|
|
categories = ["caching", "asynchronous"]
|
|
|
|
[features]
|
|
default = ["l1-memory", "cache-aside"]
|
|
# L1 (in-process) backends.
|
|
l1-memory = []
|
|
l1-moka = ["l1-memory", "dep:moka"]
|
|
# L2 (distributed) backends.
|
|
l2-redis = ["l1-memory", "dep:redis"]
|
|
# Cache-aside + auto-refresh helper.
|
|
cache-aside = ["l1-memory", "dep:serde", "dep:serde_json", "dep:tokio"]
|
|
|
|
[dependencies]
|
|
tracing = "0.1"
|
|
# Required unconditionally: the core `Cache` trait (always compiled) uses it.
|
|
async-trait = "0.1"
|
|
serde = { version = "1", features = ["derive"], optional = true }
|
|
serde_json = { version = "1", optional = true }
|
|
|
|
# L1: Moka (high-performance in-memory cache).
|
|
moka = { version = "0.12", default-features = false, features = ["future"], optional = true }
|
|
|
|
# L2: Redis/Valkey async client (multiplexed connection).
|
|
redis = { version = "0.27", default-features = false, features = ["tokio-comp"], optional = true }
|
|
tokio = { version = "1.53", features = ["sync", "rt"], optional = true }
|
|
|
|
[dev-dependencies]
|
|
tokio = { version = "1.53", features = ["full"] }
|