Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在用 JSON 序列化结构创建字符串,并在 redis 连接上运行 PUBLISH 命令。
_, err := r.Do("PUBLISH", key, ncs)
这个 go 服务用于处理/重新利用我们的聊天应用程序上发送的所有消息,然后将事件发布给客户端。
在执行 PUBLISH 命令后,redis 连接经常会出现错误,它是以下之一:
无法理解这些并且错误不断出现,这些响应是什么意思?&& 为什么它们会发生在我身上?
应用程序正在同时访问连接。文档中讨论了允许的并发性。考虑使用池。