pub async fn transaction<C: ConnectionLike + AsyncCommands, K: ToRedisArgs, T, F: AsyncFnMut(&mut C, &mut Pipeline) -> Result<Option<T>, E>, E: From<RedisError>, R: FnOnce() -> E>(
con: &mut C,
keys: &[K],
retries: usize,
retry_err: R,
func: F,
) -> Result<T, E>
Expand description
Async version of [redis::transaction]
Note that transaction usage is problematic when multiplexing is utilized on the passed in async Connection, as this would cause the multiplexed commands to interleave with the transaction’s. The transaction’s Connection should not be shared.