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

Support keyspace notifications #23

Open
mfidemraizer opened this issue Apr 20, 2014 · 1 comment
Open

Support keyspace notifications #23

mfidemraizer opened this issue Apr 20, 2014 · 1 comment

Comments

@mfidemraizer
Copy link

Hey!

As an extension of a StackOverflow Q&A I've published today (http://stackoverflow.com/questions/23180765/redis-keyspace-notifications-with-stackexchange-redis), I'm adding here the issue in order to request keyspace notifications.

Thanks in advance, either if it gets implemented or not 👍

EDIT

According to the StackOverflow Q&A linked above, we arrived to the conclusion that keyspace notifications are just pubsub channels, and it would be nice that StackExchange.Redis would implement helpers, since keyspace event channel names would require to work with strings (not that elegant).

These helpers would look something like:

    IDatabase.KeySpaceEvents.OnSet("users:matias:messages", (channel, value) => { });

Another good point would be specifying which command to listen:

    IDatabase.KeySpaceEvents.OnSet("users:matias:messages", (channel, value) => { }).When(RedisCommand.SAdd);

It's just a suggestion ;)

@NickCraver
Copy link
Collaborator

Related to #813

@NickCraver NickCraver linked a pull request Mar 14, 2020 that will close this issue
philon-msft added a commit that referenced this issue Oct 9, 2021
Merge latest changes from StackExchange.Redis
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants