9 lines
216 B
Rust
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))
|
|
}
|