Skip to content

Support for Keyspace Add New Key Notifications #7498

Closed

Description

@daidaotong

In the current version of Redis, keyspace notifications are based on each command which modifies the state of the keyspace. However, this feature lacks telling users which key will be newly added for a specific db. for instance set command, the user will receive keyspace notification exactly the same no matter key is updated or newly added. Is there any plan for supporting the keyspace add new key notifications? In that case, we might need to add notifyKeyspaceEvent hooks in dbadd functions. thanks!

Activity

  1. itamarhaber commented on Jul 9, 2020

    @itamarhaber
    Member

    Hello @daidaotong

    Thank you for making the request. We'd appreciate it if you could expand more on the actual use-case and/or problem that you're trying to solve with this feature.

  2. daidaotong commented on Jul 10, 2020

    @daidaotong
    ContributorAuthor

    @itamarhaber Hello Itamar, thanks for your reply, our use case is the customer wants a monitoring mechanism for Redis keyspace, only if the keyspace size changed like a new key was inserted or old key deleted, a notification message will be sent to tell which key has been inserted/deleted. However, I did not find current this notification is available for Redis, the notification is only for command level. thanks

  3. linked a pull request that will close this issueKeyspace event for new keys #10512on Apr 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions