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