melhorias de caches
This commit is contained in:
parent
29ae7400cf
commit
00e9c4d698
18 changed files with 210 additions and 66 deletions
2
dist-require/plugins/node-cache.d.ts
vendored
Normal file
2
dist-require/plugins/node-cache.d.ts
vendored
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
import NodeCache from "node-cache";
|
||||
export declare const cacheAuDrive: NodeCache;
|
||||
8
dist-require/plugins/node-cache.js
Normal file
8
dist-require/plugins/node-cache.js
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
"use strict";
|
||||
var __importDefault = (this && this.__importDefault) || function (mod) {
|
||||
return (mod && mod.__esModule) ? mod : { "default": mod };
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.cacheAuDrive = void 0;
|
||||
const node_cache_1 = __importDefault(require("node-cache"));
|
||||
exports.cacheAuDrive = new node_cache_1.default();
|
||||
3
dist-require/plugins/uuid.d.ts
vendored
Normal file
3
dist-require/plugins/uuid.d.ts
vendored
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
import { v4 } from "uuid";
|
||||
export declare const uuidV3: (qualquerCoisa: any) => string;
|
||||
export declare const uuidV4: typeof v4;
|
||||
11
dist-require/plugins/uuid.js
Normal file
11
dist-require/plugins/uuid.js
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.uuidV4 = exports.uuidV3 = void 0;
|
||||
const uuid_1 = require("uuid");
|
||||
const uuidV3 = (qualquerCoisa) => (0, uuid_1.v3)(typeof qualquerCoisa == "string"
|
||||
? qualquerCoisa
|
||||
: typeof qualquerCoisa == "number"
|
||||
? String(qualquerCoisa)
|
||||
: JSON.stringify(qualquerCoisa), uuid_1.NIL);
|
||||
exports.uuidV3 = uuidV3;
|
||||
exports.uuidV4 = uuid_1.v4;
|
||||
Loading…
Add table
Add a link
Reference in a new issue