Struct ntex_redis::SimpleClient
source · pub struct SimpleClient { /* private fields */ }
Expand description
Redis client
Implementations§
source§impl SimpleClient
impl SimpleClient
sourcepub async fn exec<U>(&self, cmd: U) -> Result<U::Output, CommandError>where
U: Command,
pub async fn exec<U>(&self, cmd: U) -> Result<U::Output, CommandError>where
U: Command,
Execute redis command and wait result
sourcepub fn subscribe(
self,
cmd: SubscribeOutputCommand
) -> Result<SubscriptionClient<SubscribeOutputCommand>, CommandError>
pub fn subscribe(
self,
cmd: SubscribeOutputCommand
) -> Result<SubscriptionClient<SubscribeOutputCommand>, CommandError>
Execute redis SUBSCRIBE command and act with output as stream