From 53a4d6c3b152a9aa6386c2362400b258cec09ed3 Mon Sep 17 00:00:00 2001 From: Hanna Fadida Date: Mon, 19 Apr 2021 21:33:26 +0300 Subject: Modules: adding a module type for key space notification (#8759) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Adding a new type mask ​for key space notification, REDISMODULE_NOTIFY_MODULE, to enable unique notifications from commands on REDISMODULE_KEYTYPE_MODULE type keys (which is currently unsupported). Modules can subscribe to a module key keyspace notification by RM_SubscribeToKeyspaceEvents, and clients by notify-keyspace-events of redis.conf or via the CONFIG SET, with the characters 'd' or 'A' (REDISMODULE_NOTIFY_MODULE type mask is part of the '**A**ll' notation for key space notifications). Refactor: move some pubsub test infra from pubsub.tcl to util.tcl to be re-used by other tests. --- redis.conf | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'redis.conf') diff --git a/redis.conf b/redis.conf index a7bfec83e..e8eff2774 100644 --- a/redis.conf +++ b/redis.conf @@ -1623,8 +1623,9 @@ latency-monitor-threshold 0 # x Expired events (events generated every time a key expires) # e Evicted events (events generated when a key is evicted for maxmemory) # t Stream commands +# d Module key type events # m Key-miss events (Note: It is not included in the 'A' class) -# A Alias for g$lshzxet, so that the "AKE" string means all the events +# A Alias for g$lshzxetd, so that the "AKE" string means all the events # (Except key-miss events which are excluded from 'A' due to their # unique nature). # -- cgit v1.2.1