【发布时间】:2018-10-12 20:44:21
【问题描述】:
I went trough the tutorial for the new django-channels setup for 2.0 速度有问题。我需要几秒钟的时间通过聊天发送消息才能看到相同的消息再次出现在我的客户端上。
我正在使用 windows redis 客户端,这是发送一条消息并等待的日志:
[6060] 02 May 18:39:36 - DB 0: 7 keys (4 volatile) in 4 slots HT.
[6060] 02 May 18:39:36 - 1 clients connected (0 slaves), 1990288 bytes in use
[6060] 02 May 18:39:39 - Accepted 127.0.0.1:56967
[6060] 02 May 18:39:39 - Client closed connection
[6060] 02 May 18:39:40 - Accepted 127.0.0.1:56971
[6060] 02 May 18:39:40 - Client closed connection
[6060] 02 May 18:39:41 - DB 0: 7 keys (4 volatile) in 4 slots HT.
[6060] 02 May 18:39:41 - 1 clients connected (0 slaves), 1990456 bytes in use
[6060] 02 May 18:39:41 - Accepted 127.0.0.1:56973
[6060] 02 May 18:39:41 - Client closed connection
[6060] 02 May 18:39:42 - Accepted 127.0.0.1:56977
[6060] 02 May 18:39:42 - Client closed connection
[6060] 02 May 18:39:43 - Accepted 127.0.0.1:56981
[6060] 02 May 18:39:43 - Client closed connection
[6060] 02 May 18:39:43 - Client closed connection
[6060] 02 May 18:39:44 - Accepted 127.0.0.1:56983
[6060] 02 May 18:39:46 - DB 0: 7 keys (4 volatile) in 4 slots HT.
[6060] 02 May 18:39:46 - 1 clients connected (0 slaves), 1990792 bytes in use
我所有的代码都是从教程中复制粘贴的。问题可能出在redis配置中吗?我只是使用默认配置。
【问题讨论】:
标签: django redis django-channels