feat-(level 3 ready - to level 4)

This commit is contained in:
2026-11-07 08:08:35 +03:00
parent 3693380df7
commit bb4cc3e1a6
6 changed files with 56 additions and 17 deletions
+15
View File
@@ -0,0 +1,15 @@
import os
import redis.asyncio as redis
import json
REDIS_URL = os.getenv("REDIS_URL")
redis_client = redis.from_url(REDIS_URL, decode_responses=True)
async def get_redis() -> redis.Redis:
return redis_client
async def close_redis():
await redis_client.close()