rewritten crap

This commit is contained in:
2025-05-11 07:46:57 +03:00
parent 41a5fb91f3
commit b5110ec69a
20 changed files with 475 additions and 193 deletions

11
limiter/redis_client.py Normal file
View File

@@ -0,0 +1,11 @@
import redis.asyncio as redis
import backend.config
pool = redis.ConnectionPool.from_url(backend.config.REDIS_URL)
def get_client() -> redis.Redis:
global pool
client = redis.Redis.from_pool(pool)
return client