Trait redis_driver::TransactionCommands
source · pub trait TransactionCommands {
fn watch<K, KK>(&mut self, keys: KK) -> PreparedCommand<'_, Self, ()>
where
Self: Sized,
K: Into<BulkString>,
KK: SingleArgOrCollection<K>,
{ ... }
fn unwatch(&mut self) -> PreparedCommand<'_, Self, ()>
where
Self: Sized,
{ ... }
}
Expand description
Provided Methods
sourcefn watch<K, KK>(&mut self, keys: KK) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
K: Into<BulkString>,
KK: SingleArgOrCollection<K>,
fn watch<K, KK>(&mut self, keys: KK) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
K: Into<BulkString>,
KK: SingleArgOrCollection<K>,
Marks the given keys to be watched for conditional execution of a transaction.