;(globalThis as any).cacheMemoria_cache = _cache
This commit is contained in:
parent
6dd0569f9e
commit
5ed3207ecf
4 changed files with 5 additions and 2 deletions
|
|
@ -25,6 +25,7 @@ __export(cacheMemoria_exports, {
|
|||
});
|
||||
module.exports = __toCommonJS(cacheMemoria_exports);
|
||||
const _cache = {};
|
||||
globalThis.cacheMemoria_cache = _cache;
|
||||
const cacheM = (chave, valor, validadeSeg) => {
|
||||
const txChave = typeof chave == "string" ? chave : typeof chave == "number" ? String(chave) : encodeURIComponent(JSON.stringify(chave));
|
||||
const validade = validadeSeg && (/* @__PURE__ */ new Date()).getTime() + validadeSeg * 1e3;
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "p-comuns",
|
||||
"version": "0.221.0",
|
||||
"version": "0.222.0",
|
||||
"description": "",
|
||||
"main": "./dist-back/index.js",
|
||||
"module": "./dist-front/index.mjs",
|
||||
|
|
|
|||
|
|
@ -10,6 +10,8 @@ const _cache: {
|
|||
| undefined
|
||||
} = {}
|
||||
|
||||
;(globalThis as any).cacheMemoria_cache = _cache
|
||||
|
||||
export const cacheM = <T>(
|
||||
chave: any,
|
||||
valor?: T,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue