melhorias de caches

This commit is contained in:
Luiz Silva 2025-07-16 11:20:53 -03:00
parent 29ae7400cf
commit 00e9c4d698
18 changed files with 210 additions and 66 deletions

2
dist-import/plugins/node-cache.d.ts vendored Normal file
View file

@ -0,0 +1,2 @@
import NodeCache from "node-cache";
export declare const cacheAuDrive: NodeCache;

View file

@ -0,0 +1,2 @@
import NodeCache from "node-cache";
export const cacheAuDrive = new NodeCache();

3
dist-import/plugins/uuid.d.ts vendored Normal file
View file

@ -0,0 +1,3 @@
import { v4 } from "uuid";
export declare const uuidV3: (qualquerCoisa: any) => string;
export declare const uuidV4: typeof v4;

View file

@ -0,0 +1,7 @@
import { NIL, v3, v4 } from "uuid";
export const uuidV3 = (qualquerCoisa) => v3(typeof qualquerCoisa == "string"
? qualquerCoisa
: typeof qualquerCoisa == "number"
? String(qualquerCoisa)
: JSON.stringify(qualquerCoisa), NIL);
export const uuidV4 = v4;