[package]
name = "secra-cache"
version = "0.1.4"
edition = "2021"
authors = ["Your Name <your.email@example.com>"]
license = "MIT OR Apache-2.0"
description = "一个基于 Redis 的统一缓存管理库,专为插件化架构设计,提供强隔离、生命周期管理和极简 API"
keywords = ["cache", "redis", "plugin", "async", "tokio"]
categories = ["asynchronous", "caching", "web-programming"]
readme = "README.md"
exclude = [
"target/",
"Cargo.lock",
".gitignore",
".git/",
]
[lib]
name = "secra_cache"
path = "src/lib.rs"
[dependencies]
async-trait = "0.1"
rustis = { version = "0.19", optional = true }
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
dashmap = "6.1"
tokio = { version = "1.0", features = ["sync", "rt-multi-thread", "macros"] }
fastrand = "2.0"
tracing = "0.1"
thiserror = "2.0"
[features]
default = []
rustis = ["dep:rustis"]