[package]
edition = "2021"
name = "doido-cache"
version = "0.0.11"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Named cache stores, TTL — memory/Redis/Memcached backends in ActiveSupport::Cache fashion for Doido."
readme = false
license = "MIT"
[features]
cache-db = ["dep:doido-model"]
cache-memcache = [
"dep:memcache",
"dep:tokio",
]
cache-redis = ["dep:redis"]
default = []
[lib]
name = "doido_cache"
path = "src/lib.rs"
[[test]]
name = "arc_store_test"
path = "tests/arc_store_test.rs"
[[test]]
name = "cache_test"
path = "tests/cache_test.rs"
[[test]]
name = "codec_test"
path = "tests/codec_test.rs"
[[test]]
name = "config_test"
path = "tests/config_test.rs"
[[test]]
name = "db_store_test"
path = "tests/db_store_test.rs"
[[test]]
name = "fetch_test"
path = "tests/fetch_test.rs"
[[test]]
name = "global_init_test"
path = "tests/global_init_test.rs"
[[test]]
name = "global_test"
path = "tests/global_test.rs"
[[test]]
name = "memory_test"
path = "tests/memory_test.rs"
[[test]]
name = "multi_store_config_test"
path = "tests/multi_store_config_test.rs"
[[test]]
name = "multi_test"
path = "tests/multi_test.rs"
[[test]]
name = "namespaced_test"
path = "tests/namespaced_test.rs"
[[test]]
name = "registry_test"
path = "tests/registry_test.rs"
[[test]]
name = "store_test"
path = "tests/store_test.rs"
[[test]]
name = "versioning_test"
path = "tests/versioning_test.rs"
[dependencies.async-trait]
version = "0.1"
[dependencies.doido-core]
version = "=0.0.11"
[dependencies.doido-model]
version = "=0.0.11"
optional = true
[dependencies.flate2]
version = "1"
[dependencies.memcache]
version = "0.20"
optional = true
[dependencies.redis]
version = "1"
features = [
"tokio-comp",
"aio",
]
optional = true
[dependencies.serde]
version = "1"
features = ["derive"]
[dependencies.serde_json]
version = "1"
[dependencies.serde_norway]
version = "0.9"
[dependencies.tokio]
version = "1"
features = [
"rt-multi-thread",
"macros",
"rt",
]
optional = true
[dev-dependencies.async-trait]
version = "0.1"
[dev-dependencies.doido-core]
version = "=0.0.11"
[dev-dependencies.tokio]
version = "1"
features = [
"rt-multi-thread",
"macros",
"macros",
"rt",
"time",
]