I am trying to get values by keys array from redis cluster in nodejs, and it returns error: "All keys in the pipeline should belong to the same slot" this is code:
private GETALL_P(keys: string[], cb: any) {
var pipeline = this.client.pipeline();
keys.forEach(function (key: string, index: Number) {
pipeline.get(key);
});
pipeline.exec(function (err: any, result: any) {
cb(err, result);
});
}
I searched and someone said: it is not working with cluster. Is there any way to do this?