d1求片冷却

This commit is contained in:
mtvpls
2026-01-30 17:47:30 +08:00
parent ca18aef7c4
commit 3feaac91d4
4 changed files with 28 additions and 7 deletions
+10
View File
@@ -1275,6 +1275,16 @@ export abstract class BaseRedisStorage implements IStorage {
);
}
async updateLastMovieRequestTime(userName: string, timestamp: number): Promise<void> {
await this.withRetry(() =>
this.adapter.hSet(
this.userInfoKey(userName),
'last_movie_request_time',
timestamp.toString()
)
);
}
// ---------- 求片相关 ----------
private movieRequestsKey() {
return 'movie_requests:all';