pub trait TransactionCommands<T>: PrepareCommand<T> {
    fn watch<K, KK>(&self, keys: KK) -> CommandResult<'_, T, ()>
    where
        K: Into<BulkString>,
        KK: SingleArgOrCollection<K>
, { ... } fn unwatch(&self) -> CommandResult<'_, T, ()> { ... } }
Expand description

A group of Redis commands related to Transactions

See Also

Redis Generic Commands

Provided Methods

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

See Also

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

Flushes all the previously watched keys for a transaction.

If you call exec or discard, there’s no need to manually call UNWATCH.

See Also

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

Implementors