This commit is contained in:
10
pomodoro_bot/redis_client.py
Normal file
10
pomodoro_bot/redis_client.py
Normal file
@@ -0,0 +1,10 @@
|
||||
import redis.asyncio as redis
|
||||
import os
|
||||
|
||||
r = None
|
||||
|
||||
async def init_redis():
|
||||
global r
|
||||
r = redis.Redis.from_url(
|
||||
os.getenv("REDIS_URL", "redis://localhost"), decode_responses=True
|
||||
)
|
||||
Reference in New Issue
Block a user