[dependencies.ahash]
default-features = false
optional = true
version = "0.8"
[dependencies.async-trait]
optional = true
version = "0.1"
[dependencies.cached_proc_macro]
optional = true
version = "0.23.0"
[dependencies.cached_proc_macro_types]
optional = true
version = "0.1.1"
[dependencies.directories]
optional = true
version = "5.0"
[dependencies.futures]
default-features = false
optional = true
version = "0.3"
[dependencies.hashbrown]
default-features = false
features = ["raw", "inline-more"]
version = "0.14"
[dependencies.once_cell]
version = "1"
[dependencies.r2d2]
optional = true
version = "0.8"
[dependencies.redis]
features = ["r2d2"]
optional = true
version = "0.25"
[dependencies.rmp-serde]
optional = true
version = "1.1"
[dependencies.serde]
features = ["derive"]
optional = true
version = "1.0"
[dependencies.serde_json]
optional = true
version = "1.0"
[dependencies.sled]
optional = true
version = "0.34"
[dependencies.thiserror]
version = "1"
[dependencies.tokio]
features = ["macros", "time", "sync", "parking_lot"]
optional = true
version = "1"
[dependencies.web-time]
version = "^1.1.0"
[dev-dependencies.async-std]
features = ["attributes"]
version = "1.6"
[dev-dependencies.copy_dir]
version = "0.1.3"
[dev-dependencies.googletest]
version = "0.11.0"
[dev-dependencies.serial_test]
version = "3"
[dev-dependencies.smartstring]
version = "1"
[dev-dependencies.tempfile]
version = "3.10.1"
[[example]]
name = "redis"
required-features = ["redis_store", "proc_macro"]
[[example]]
name = "redis-async"
required-features = ["async", "proc_macro"]
[[example]]
name = "tokio"
required-features = ["async", "proc_macro"]
[[example]]
name = "async_std"
required-features = ["async", "proc_macro"]
[[example]]
name = "expiring_sized_cache"
required-features = ["async_tokio_rt_multi_thread"]
[features]
ahash = ["dep:ahash", "hashbrown/default"]
async = ["futures", "tokio", "async-trait"]
async_tokio_rt_multi_thread = ["async", "tokio/rt-multi-thread"]
default = ["proc_macro", "ahash"]
disk_store = ["sled", "serde", "rmp-serde", "directories"]
proc_macro = ["cached_proc_macro", "cached_proc_macro_types"]
redis_ahash = ["redis_store", "redis/ahash"]
redis_async_std = ["redis_store", "async", "redis/aio", "redis/async-std-comp", "redis/tls", "redis/async-std-tls-comp"]
redis_connection_manager = ["redis_store", "redis/connection-manager"]
redis_store = ["redis", "r2d2", "serde", "serde_json"]
redis_tokio = ["redis_store", "async", "redis/aio", "redis/tokio-comp", "redis/tls", "redis/tokio-native-tls-comp"]
wasm = []
[package]
authors = ["James Kominick <james@kominick.com>"]
categories = ["caching", "data-structures"]
description = "Generic cache implementations and simplified function memoization"
documentation = "https://docs.rs/cached"
edition = "2018"
keywords = ["cache", "memoize", "lru", "redis", "disk"]
license = "MIT"
name = "cached"
readme = "README.md"
repository = "https://github.com/jaemk/cached"
version = "0.53.1"
[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "docsrs"]