Trait rustis::commands::TransactionCommands

source ·
pub trait TransactionCommands<'a> {
    // Provided methods
    fn watch<K, KK>(self, keys: KK) -> PreparedCommand<'a, Self, ()>
       where Self: Sized,
             K: SingleArg,
             KK: SingleArgCollection<K> { ... }
    fn unwatch(self) -> PreparedCommand<'a, Self, ()>
       where Self: Sized { ... }
}
Expand description

A group of Redis commands related to Transactions

§See Also

Redis Generic Commands

Provided Methods§

source

fn watch<K, KK>(self, keys: KK) -> PreparedCommand<'a, Self, ()>
where Self: Sized, K: SingleArg, KK: SingleArgCollection<K>,

Marks the given keys to be watched for conditional execution of a transaction.

§See Also

https://redis.io/commands/watch/

source

fn unwatch(self) -> PreparedCommand<'a, Self, ()>
where Self: Sized,

Flushes all the previously watched keys for a transaction.

If you call execute, there’s no need to manually call UNWATCH.

§See Also

https://redis.io/commands/unwatch/

Implementors§

source§

impl<'a> TransactionCommands<'a> for &'a Client