Atomic Transactions
Problem Statement
First off, huge fan of this library. Thank you so much for spearheading this effort to make Redis easily accessible for Swift on the Server!
I'm using this to build out some out of the box Redis functionality for https://github.com/alchemy-swift/alchemy and would love to add a "transaction" API that's similar to Laravel's. It's a wrapper around MULTI
EXEC
for performing multiple operations atomically.
I'm working on my own transaction
but was wondering if it might make sense to add that directly upstream to this repo, is that something you have considered in the past / attempted? I'm also very open to any hot takes you might have on the best way to approach solving this. My current thought is just chain a bunch of futures between a "MULTI" and "EXEC" command, but perhaps there is a way that makes less round trips to the server.
Cheers!