Skip to main content

klauthed_data/cache/
mod.rs

1//! Cache connections from a [`CacheConfig`](klauthed_core::config::CacheConfig).
2//!
3//! * `redis` feature → [`connect_redis`], a managed async Redis connection.
4//! * `cache-memory` feature → `build_memory_cache`, an in-process moka cache.
5
6#[cfg(feature = "redis")]
7pub mod redis;
8
9#[cfg(feature = "cache-memory")]
10pub mod memory;
11
12#[cfg(feature = "redis")]
13pub use redis::connect as connect_redis;
14
15#[cfg(feature = "cache-memory")]
16pub use memory::build_memory_cache;