1.Redis訂閱簡介redis
進程間的一種消息通訊模式:發送者(pub)發送消息,訂閱者(sub)接收消息。 spa
2.Redis訂閱命令3d
3.Redis訂閱的使用blog
先訂閱後發佈後才能收到消息,進程 1 能夠一次性訂閱多個,SUBSCRIBE c1 c2 c3ci
2 消息發佈,PUBLISH c2 hello-redistable ===========================================================================================================im 3 訂閱多個,通配符*, PSUBSCRIBE new*通信 4 收取消息, PUBLISH new1 redis2015img |