Trait redis_driver::TransactionCommands
source · [−]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
Provided Methods
sourcefn watch<K, KK>(&self, keys: KK) -> CommandResult<'_, T, ()>where
K: Into<BulkString>,
KK: SingleArgOrCollection<K>,
fn watch<K, KK>(&self, keys: KK) -> CommandResult<'_, T, ()>where
K: Into<BulkString>,
KK: SingleArgOrCollection<K>,
Marks the given keys to be watched for conditional execution of a transaction.