Struct redis_cluster_rs::Client [−][src]
pub struct Client { /* fields omitted */ }
This is a Redis cluster client.
Methods
impl Client
[src]
impl Client
pub fn open<T: IntoConnectionInfo>(initial_nodes: Vec<T>) -> RedisResult<Client>
[src]
pub fn open<T: IntoConnectionInfo>(initial_nodes: Vec<T>) -> RedisResult<Client>
Connect to a redis cluster server and return a cluster client. This does not actually open a connection yet but it performs some basic checks on the URL.
Errors
If it is failed to parse initial_nodes, an error is returned.
pub fn get_connection(&self) -> RedisResult<Connection>
[src]
pub fn get_connection(&self) -> RedisResult<Connection>
Open and get a Redis cluster connection.
Errors
If it is failed to open connections and to create slots, an error is returned.