-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Broadcast commands in the Cluster client #2431
Comments
@leibale |
Then we need a wrapper like in Graph... executing |
Idk about the implementation, but I'm just saying that where a command should run is a part of the command's docs and modules should use the same API: https://redis.io/docs/reference/command-tips/#request_policy |
so something like const REQUEST_POLICIES = {
...
};
const RESPONSE_POLICES = {
...
};
// will default to the policy defined in redis
cluster.ping();
// can be overridden
cluster.withPolicy({
request: ...,
response: ...
}).ping(); |
Motivation
The Cluster client should provide overrides for specific Redis Core and module commands to make them easy to use with OS Cluster API.
FT.AGGREGATE
and executesFT.CURSOR READ
orFT.CURSOR DEL
on the correct node (on the node where FT.AGGREGATE was executed) automaticallyBasic Code Example
No response
The text was updated successfully, but these errors were encountered: