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