Redis中的发布与订阅

  redis中实现发布与订阅相对于zookeeper很是简单。直接使用publish和subscribe就行。 redis

  subscrible news; 订阅news这个channelspa

  publish news  a-dog-eat-a-pig 在news这个channel就接受到信息class

相关文章
相关标签/搜索