darkwing/cache/
mod.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
//! Redis cache functionality module.
//!
//! This module provides Redis caching capabilities for the application,
//! including connection management and pooling. It exposes the necessary
//! types and functions for interacting with the Redis cache infrastructure.
//!
//! The main components are:
//! - [`Cache`]: The main struct for managing Redis connections
//! - [`ConnectionPool`]: A connection pool for Redis clients
//!
//! # Example
//!
//! ```rust,no_run
//! use std::time::Duration;
//! use darkwing::cache::Cache;
//!
//! async fn example() -> anyhow::Result<()> {
//!   let cache = Cache::connect(
//!     "redis://127.0.0.1:6379",
//!     5,
//!     Duration::from_secs(10)
//!   )?;
//!   Ok(())
//! }
//! ```

mod connection;

pub use connection::*;