Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Feature Request: Support for Command Pipelining #106

Open
dankinsoid opened this issue Jun 5, 2024 · 1 comment
Open

Feature Request: Support for Command Pipelining #106

dankinsoid opened this issue Jun 5, 2024 · 1 comment

Comments

@dankinsoid
Copy link

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
Copy link
Author

dankinsoid commented Jun 5, 2024

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

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant