Files
payphone/src/redis.rs
T

9 lines
216 B
Rust

use deadpool_redis::{
Runtime,
cluster::{Config, CreatePoolError, Pool},
};
pub fn init(urls: Vec<String>) -> Result<Pool, CreatePoolError> {
Config::from_urls(urls).create_pool(Some(Runtime::Tokio1))
}