This is one of the problem in using the transaction commands of Redis, MULTI, EXEC, WATCH, UNWATCH, and DISCARD, which require the leaseConnection to maintain a single connection, by leaseConnection. My suggestion is to build a new keyword "transaction" such as
let response = req.redis.transaction("MULTI") {
let response1 = req.redis.send(command1)
let response2 = req.redis.send(command2)
...
}.exec()
The transaction maintains a single connection. Further development for error managements such as WATCH, UNWATCH, DISCARD commands would be appreciated.
I am trying to simulate the Redis MULTI ... EXEC pair instead of waiting pipeline command in RediStack:
The console shows me:
This is one of the problem in using the transaction commands of Redis, MULTI, EXEC, WATCH, UNWATCH, and DISCARD, which require the leaseConnection to maintain a single connection, by leaseConnection. My suggestion is to build a new keyword "transaction" such as
The transaction maintains a single connection. Further development for error managements such as WATCH, UNWATCH, DISCARD commands would be appreciated.