gitscope
← marzneshin / v0.6.4 / app/config/db.py
https://dev.kronoz.win/r/marzneshin.git
app/config/db.py · Python
Blame Raw
1from functools import lru_cache
2
3from app.db import get_jwt_secret_key, GetDB
4
5
6@lru_cache(maxsize=None)
7def get_secret_key():
8    with GetDB() as db:
9        return get_jwt_secret_key(db)