feat: 更新多个依赖版本,添加客户端认证模块及缓存功能
This commit is contained in:
6
assistant/src/module/client-auth/cache-auth.ts
Normal file
6
assistant/src/module/client-auth/cache-auth.ts
Normal 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天
|
||||
});
|
||||
Reference in New Issue
Block a user