mirror of
https://github.com/certd/certd.git
synced 2026-04-15 21:40:53 +08:00
chore: pipeline utils 转移到basic
This commit is contained in:
8
packages/core/basic/src/utils/util.cache.ts
Normal file
8
packages/core/basic/src/utils/util.cache.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
// LRUCache
|
||||
|
||||
import { LRUCache } from "lru-cache";
|
||||
|
||||
export const cache = new LRUCache<string, any>({
|
||||
max: 1000,
|
||||
ttl: 1000 * 60 * 10,
|
||||
});
|
||||
Reference in New Issue
Block a user