pub trait TransactionCommands {
// Provided methods
fn watch<K, KK>(&mut self, keys: KK) -> PreparedCommand<'_, Self, ()>
where Self: Sized,
K: Into<CommandArg>,
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, ()>
fn watch<K, KK>(&mut self, keys: KK) -> PreparedCommand<'_, Self, ()>
Marks the given keys to be watched for conditional execution of a transaction.