参考:
官方文档: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
本文介绍了如何在默认情况下禁用Redis键空间事件通知,并提供方法在redis.conf或使用redis-cli启用这些通知,以便监控键空间活动。
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
6034
9817

被折叠的 条评论
为什么被折叠?