Struct redis::cluster::ClusterClientBuilder [−][src]
pub struct ClusterClientBuilder { /* fields omitted */ }
This is supported on crate feature
cluster
only.Expand description
Used to configure and build a ClusterClient.
Implementations
impl ClusterClientBuilder
[src]
impl ClusterClientBuilder
[src]pub fn new<T: IntoConnectionInfo>(initial_nodes: Vec<T>) -> ClusterClientBuilder
[src]
pub fn new<T: IntoConnectionInfo>(initial_nodes: Vec<T>) -> ClusterClientBuilder
[src]Generate the base configuration for new Client.
pub fn open(self) -> RedisResult<ClusterClient>
[src]
pub fn open(self) -> RedisResult<ClusterClient>
[src]Builds a ClusterClient. Despite the name, this does not actually open a connection to Redis Cluster, but will perform some basic checks of the initial nodes’ URLs and passwords.
Errors
Upon failure to parse initial nodes or if the initial nodes have different passwords, an error is returned.
pub fn password(self, password: String) -> ClusterClientBuilder
[src]
pub fn password(self, password: String) -> ClusterClientBuilder
[src]Set password for new ClusterClient.
pub fn readonly(self, readonly: bool) -> ClusterClientBuilder
[src]
pub fn readonly(self, readonly: bool) -> ClusterClientBuilder
[src]Set read only mode for new ClusterClient (default is false). If readonly is true, all queries will go to replica nodes. If there are no replica nodes, queries will be issued to the primary nodes.
Auto Trait Implementations
impl !RefUnwindSafe for ClusterClientBuilder
impl Send for ClusterClientBuilder
impl Sync for ClusterClientBuilder
impl Unpin for ClusterClientBuilder
impl !UnwindSafe for ClusterClientBuilder
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,