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