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
zdiff commande ignore keyPrefix #1591
Comments
Hi @liavsitruk 👋 , This is a bug that some newly added commands do not support However, I'm not sure we should release this bugfix as a non-major version as it could break your code if you manually prefix |
Hi,
It looks like zdiff command ignores the keyPrefix variable in the RedisOptions (inherited from CommanderOptions.)
I used redis-cli monitor command to validate this.
In other commands (like zrange for example) the prefix added to the key.
Example:
this.redis = new Redis(redisAddress, {keyPrefix: 'myKeyPrefix:', db: redisDbIndex});
this.redis.zdiff(2, key1, key2);
// in monitor: "zdiff" "2" "key1" "key2"
this.redis.zrange(key1, 0, -1);
// in monitor: "zrange" "myKeyPrefix:key1" "0" "-1"
Thanks
The text was updated successfully, but these errors were encountered: