Todo redis interface (#136)

This commit is contained in:
Nishant Joshi
2022-12-13 18:38:11 +05:30
committed by GitHub
parent 6d30989f59
commit 9fe3f7d904
6 changed files with 81 additions and 5 deletions

View File

@ -1,5 +1,21 @@
//! Intermediate module for encapsulate all the redis related functionality
//!
//! Provides structs to represent redis connection and all functions that redis provides and
//! are used in the `router` crate. Abstractions for creating a new connection while also facilitating
//! redis connection pool and configuration based types.
//!
//! # Examples
//! ```
//! pub mod types;
//! use self::types;
//!
//! #[tokio::main]
//! fn main() -> Result<(), Box<dyn std::error::Error>> {
//! let redis_conn = RedisConnectionPool::new(types::RedisSettings::default()).await;
//! // ... redis_conn ready to use
//! }
//! ```
#![forbid(unsafe_code)]
// TODO: Add crate & modules documentation for this crate
pub mod commands;
pub mod errors;