RediStack icon indicating copy to clipboard operation
RediStack copied to clipboard

Feature Request: Support for Command Pipelining

Open dankinsoid opened this issue 1 year ago • 1 comments

I am using the RediStack library in my Swift project with Vapor, and I need to send multiple commands to Redis together as a batch to improve performance. However, I couldn't find a direct way to send multiple commands together using the existing API.

Current Behavior

The send(command: String...) function appears to set connection.sendCommandsImmediately = true under the hood, which sends each command immediately and cannot be configured otherwise. Even if I construct RedisCommand myself, I don't see any way to send it manually, only through send(command: String...). Please correct me if I'm wrong. I found several old discussions about this topic, but all of them seem irrelevant.

dankinsoid avatar Jun 05 '24 11:06 dankinsoid

I would like just have smth simple like send(commands: [(String, [Value]])

dankinsoid avatar Jun 05 '24 11:06 dankinsoid