Skip to content
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

[question] Prefix option + subscribe command #1286

Closed
Atala opened this issue Nov 10, 2017 · 3 comments
Closed

[question] Prefix option + subscribe command #1286

Atala opened this issue Nov 10, 2017 · 3 comments
Labels

Comments

@Atala
Copy link

Atala commented Nov 10, 2017

  • Version: node_redis : 2.8.2 // redis : 3.2.7
  • Platform: Linux Alpine, node v8.5.0
  • Description:

Hey,

I have a question about the prefix option. Is it supposed to prefix channel names when using the subscribe command?

At the moment it does not seems to prefix the channel name.

In my use-case it is at odds with my PHP client predis that does prefix channels name when using the publish commands.

Thanks for your help & your time

@Atala Atala changed the title [question] Prefix + subscribe command [question] Prefix option + subscribe command Nov 10, 2017
@jdegger
Copy link

jdegger commented Nov 10, 2017

No, the channel name is not prefixed. Only the keys are prefixed. I think this behavior is unlikely to change since it would brake a lot of existing clients.

@yss14
Copy link

yss14 commented Jan 9, 2018

@Atala You can easily implement this on your own by wrapping this feature and prepending the prefix to channel names. For reference, see this commit yss14/node-redis-eventbus@8930897

@Atala
Copy link
Author

Atala commented Jan 10, 2018

Yes indeed, I did it this way - I was just surprised of the unexpected (imho) behavior.

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants