ioredis
ioredis copied to clipboard
keyPrefix appears to not work with `subscribe`
The documentation implies that the keyPrefix option should work for subscribe and publish, but in practice, it seems to not.
As you can see, the set commands are correctly prefixed, but the subscribe commands aren't.
This also applies to unsubscribe
We've stumbled across this issue at work when using the library and were wondering if it is relevant and whether we can contribute?
Turns out the reason it doesn't work as one might expect is because pubsub actually doesn't use "keys" but "channels" and these are different according to redis, so arguably, there'd need to be a channelPrefix option that does the exact same thing but for pubsub.
I understand.
Will adding the channelPrefix be beneficial and should we contribute to it?