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!

Comment From: itamarhaber

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.

Comment From: daidaotong

@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