Trait redis_driver::PubSubCommands
source · [−]pub trait PubSubCommands {
fn publish<'a, C, M>(&'a self, channel: C, message: M) -> Future<'a, usize>
where
C: Into<BulkString> + 'a + Send,
M: Into<BulkString> + 'a + Send;
fn subscribe<'a, C>(&'a self, channel: C) -> Future<'a, PubSubStream>
where
C: Into<BulkString> + 'a + Send;
}
Expand description
A redis connection used in a pub/sub scenario.