feat: 更新多个依赖版本,添加客户端认证模块及缓存功能

This commit is contained in:
2026-03-09 19:00:34 +08:00
parent d33db1b8e7
commit 060595c352
10 changed files with 95 additions and 19 deletions

View File

@@ -0,0 +1,6 @@
import { LRUCache } from 'lru-cache'
export const authCache = new LRUCache<string, any>({
max: 10000, // 最大缓存数量
ttl: 1000 * 60 * 60 * 24 * 7, // 缓存过期时间单位为毫秒这里设置为7天
});