Redis / Node.js - 2 clients (1 pub/sub) causing issues with writes

落爺英雄遲暮 提交于 2019-12-03 16:14:18

You probably need to publish messages from client1 since client2 is dedicated to listening for messages on certain channel. Few words about this behavior are written in node_redis readme:

If you need to send regular commands to Redis while in pub/sub mode, just open another connection.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!