mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-29 00:49:42 +08:00
Todo redis interface (#136)
This commit is contained in:
@ -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;
|
||||
|
||||
Reference in New Issue
Block a user