initial commit

This commit is contained in:
2025-03-28 13:55:39 +05:00
commit 7f3192f64c
10 changed files with 182 additions and 0 deletions

10
redis_client.py Normal file
View 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
)