pub struct Cluster { /* private fields */ }
Implementations§
source§impl Cluster
impl Cluster
pub fn new() -> Cluster
pub fn add(&mut self, info: &str) -> RedisResult<()>
sourcepub fn get_pubsub(&self) -> RedisResult<PubSub>
pub fn get_pubsub(&self) -> RedisResult<PubSub>
Returns a PubSub connection. A pubsub connection can be used to listen to messages coming in through the redis publish/subscribe system.
Note that redis’ pubsub operates across all databases.