UNPKG
@ngx-toolkit/cache
Version:
latest (13.2.1)
13.2.1
13.2.0
9.0.4
9.0.3
9.0.2
9.0.1
9.0.0
8.0.0
7.0.4
7.0.3
7.0.2
7.0.1
7.0.0
6.1.1
6.1.0
Angular cache with Universal support
github.com/dewizz/ngx-toolkit
dewizz/ngx-toolkit
@ngx-toolkit/cache
/
lib
/
impl
/
memory-cache.d.ts
11 lines
(10 loc)
•
289 B
TypeScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
import
{
Cache
}
from
'../cache.model'
;
export
declare
class
MemoryCache
implements
Cache
{
readonly
name
:
string
;
private
cache;
constructor
(
name
:
string
);
clear
():
void
;
evict
(
key
:
string
):
void
; get<T>(
key
:
string
): T; put<T>(
key
:
string
,
value
: T):
void
; }