;(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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue