Cache M Fixo
This commit is contained in:
parent
2dafba786d
commit
e3c5642027
4 changed files with 11 additions and 2 deletions
|
|
@ -43,3 +43,9 @@ export const cacheM = <T>(
|
|||
export const verCacheM = () => _cache
|
||||
|
||||
export const cacheMemoria = cacheM
|
||||
|
||||
/** para uso fixo dentro de uma função, trava a chave */
|
||||
export const cacheMFixo =
|
||||
(chave: any) =>
|
||||
<T>(valor?: T) =>
|
||||
cacheM(chave, valor)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue