Skip to content

Support keyspace notifications #23

Closed

Description

@mfidemraizer

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 ;)

Activity

  1. NickCraver commented on May 28, 2018

    @NickCraver
    Collaborator

    Related to #813

  2. linked a pull request that will close this issueCluster Keyspace Notification Support #813on Mar 14, 2020
  3. added a commit that references this issue on Oct 9, 2021
  4. mgravell commented on Jan 22, 2026

    @mgravell
    Collaborator

    It has been a while, but: working on this in #2995. There are a bunch of complications in particular with cluster, but: we actually have a plan!

  5. mgravell commented on Jul 22, 2026

    @mgravell
    Collaborator

    This was implemented and is fully supported - I think from 2.11.0 onwards

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions