This commit is contained in:
+6
-1
@@ -62,7 +62,12 @@ async def lifespan(app: FastAPI):
|
||||
cache = SessionCache(open_cache(settings.redis_url))
|
||||
try:
|
||||
await apply_migrations(pool)
|
||||
app.state.store = Store(pool, cache, settings.session_ttl_seconds)
|
||||
app.state.store = Store(
|
||||
pool,
|
||||
cache,
|
||||
settings.session_ttl_seconds,
|
||||
settings.history_cache,
|
||||
)
|
||||
yield
|
||||
finally:
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user