UNPKG
node-ts-cache-storage-memory
Version:
latest (4.4.0)
4.4.0
4.3.4
4.2.3
4.2.2
4.2.1
Memory storage module for node-ts-cache
github.com/havsar/node-ts-cache
havsar/node-ts-cache
node-ts-cache-storage-memory
/
dist
/
index.d.ts
9 lines
(8 loc)
•
296 B
TypeScript
View Raw
1
2
3
4
5
6
7
8
9
import
{
ICacheItem
,
IStorage
}
from
"node-ts-cache"
;
export
declare
class
MemoryStorage
implements
IStorage
{
private
memCache;
constructor
(
);
getItem
(
key
:
string
):
Promise
<
ICacheItem
|
undefined
>;
setItem
(
key
:
string
,
content
:
any
):
Promise
<
void
>;
clear
():
Promise
<
void
>; }