aboutsummaryrefslogtreecommitdiff
path: root/chat/chat_cache.py
diff options
context:
space:
mode:
authorBobby <[email protected]>2023-05-28 00:41:28 -0400
committerBobby <[email protected]>2023-05-28 00:41:28 -0400
commit1bb0aa7433ec5f9d1bc6252204c8d6e8a682396c (patch)
tree38d17386300c1355418d5bed274f65045c8223ca /chat/chat_cache.py
parentac5057a31021cf0c72fa9ad02d238fd0184f508e (diff)
downloadthatcomputerscientist-1bb0aa7433ec5f9d1bc6252204c8d6e8a682396c.tar.xz
thatcomputerscientist-1bb0aa7433ec5f9d1bc6252204c8d6e8a682396c.zip
Post show view count now, Django session uses redis cache
Diffstat (limited to 'chat/chat_cache.py')
-rw-r--r--chat/chat_cache.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/chat/chat_cache.py b/chat/chat_cache.py
index 08cbf178..43354ef7 100644
--- a/chat/chat_cache.py
+++ b/chat/chat_cache.py
@@ -1,6 +1,7 @@
-import redis
import json
+import redis
+
r = redis.Redis(host='localhost', port=6379, db=0)
def handle_connect():