FIX redis locks when cache not redis
@@ -3,14 +3,10 @@ from redis import Redis
from anubis.env import env
-match env.CACHE_TYPE:
- case "RedisCache":
redis = Redis(
host=env.REDIS_HOST,
password=env.REDIS_PASS,
)
- case _:
- redis = None
def create_redis_lock(key: str, auto_release_time: float = 3.0) -> Redlock:
