klauthed-data 0.1.0

Data-access building blocks for klauthed: pagination, transactional outbox, idempotency, locks, and caching.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//! Cache connections from a [`CacheConfig`](klauthed_core::config::CacheConfig).
//!
//! * `redis` feature → [`connect_redis`], a managed async Redis connection.
//! * `cache-memory` feature → `build_memory_cache`, an in-process moka cache.

#[cfg(feature = "redis")]
pub mod redis;

#[cfg(feature = "cache-memory")]
pub mod memory;

#[cfg(feature = "redis")]
pub use redis::connect as connect_redis;

#[cfg(feature = "cache-memory")]
pub use memory::build_memory_cache;