Trait redis_swapplex::ConnectionInfo
source · pub trait ConnectionInfo: Send + Sync + Sized {
// Required methods
fn new(client: RedisResult<Client>, db_index: i64) -> Self;
fn get_db(&self) -> i64;
fn client(&self) -> &RedisResult<Client>;
// Provided methods
fn parse_index(url: &Url) -> Option<i64> { ... }
fn from_url(url: &Url) -> Self { ... }
}Expand description
Trait for defining redis client creation and db selection