feat: add redis cache to store polls state
This commit is contained in:
6
data/redis.py
Normal file
6
data/redis.py
Normal file
@@ -0,0 +1,6 @@
|
||||
import os
|
||||
from walrus import *
|
||||
|
||||
_REDIS_URL = os.getenv('REDIS_URL')
|
||||
_db = Database.from_url(_REDIS_URL)
|
||||
polls = _db.Hash("polls")
|
||||
Reference in New Issue
Block a user