redis有类似于消息中间件的功能
# 订阅后自动收取消息
subscribe c1 c2 c3
# 发布
publish c2 hello-world
# 订阅
psubscribe new* (订阅多个)
# 发布
publish new1 redis2015
publish new2 redis2016
redis有类似于消息中间件的功能
# 订阅后自动收取消息
subscribe c1 c2 c3
# 发布
publish c2 hello-world
# 订阅
psubscribe new* (订阅多个)
# 发布
publish new1 redis2015
publish new2 redis2016