redis-cli -h 你的IP -p 你的端口
redis监控,在docker容器内找到redis下(你的端口)18628文件,修改配置,打开配置config set notify-keyspace-events $E
E表示监控事件
redis监控命令:
config set notify-keyspace-events $E
config get notify-keyspace-events
psubscribe '__key*__:*'(本地测试)
redis-cli -h 你的IP -p 你的端口
redis监控,在docker容器内找到redis下(你的端口)18628文件,修改配置,打开配置config set notify-keyspace-events $E
E表示监控事件
redis监控命令:
config set notify-keyspace-events $E
config get notify-keyspace-events
psubscribe '__key*__:*'(本地测试)