taoensso / carmine

Redis client + message queue for Clojure
https://www.taoensso.com/carmine
Eclipse Public License 1.0
1.15k stars 130 forks source link

Building up Redis tx-data without actually executing #256

Closed theronic closed 1 year ago

theronic commented 2 years ago

I have some business logic that needs to build up a sequence of side effects, including some Redis commands. How can I use Carmine to build up the commands that will be executed in a pipeline without actually executing them?

Basically, a version of wcar that returns "tx-data", which can then be executed later.

theronic commented 2 years ago

Realized I can do this by moving my calls to Carmine into functions and mocking those functions.

ptaoussanis commented 1 year ago

@theronic Hi Petrus, thanks for updating the issue with your result. Apologies for the delayed reply, but happy you found a solution so long 👍