This commit is contained in:
咕谷酱
2025-08-22 00:07:19 +08:00
parent bade8658ed
commit 80d4237c5d
22 changed files with 423 additions and 356 deletions

View File

@@ -2,6 +2,7 @@
Beatmap缓存预取服务
用于提前缓存热门beatmap减少成绩计算时的获取延迟
"""
from __future__ import annotations
import asyncio
@@ -155,9 +156,7 @@ def get_beatmap_cache_service(redis: Redis, fetcher: "Fetcher") -> BeatmapCacheS
async def schedule_preload_task(
session: AsyncSession,
redis: Redis,
fetcher: "Fetcher"
session: AsyncSession, redis: Redis, fetcher: "Fetcher"
):
"""
定时预加载任务