Skip to content

zdiff commande ignore keyPrefix #1591

Open
@liavsitruk

Description

@liavsitruk

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions