参考:
官方文档:https://redis.io/docs/manual/keyspace-notifications/
By default, keyspace events notifications are disabled. We can enable them in redis.conf or redis-cli as below:
$ redis-cli config set notify-keyspace-events KEA
OK
By default, keyspace events notifications are disabled. We can enable them in redis.conf or redis-cli as below:
$ redis-cli config set notify-keyspace-events KEA
OK