JS API Reference
Class: CacheService<T>
shared/cache/CacheService.CacheService
Type parameters
Name |
---|
T |
Table of contents
Constructors
Methods
Constructors
constructor
• new CacheService<T
>(): CacheService
<T
>
Type parameters
Name |
---|
T |
Returns
CacheService
<T
>
Methods
set
▸ set(key
, value
): T
Parameters
Name | Type |
---|---|
key | string |
value | T |
Returns
T
Defined in
src/shared/cache/CacheService.ts:4
get
▸ get(key
): undefined
| T
Parameters
Name | Type |
---|---|
key | string |
Returns
undefined
| T
Defined in
src/shared/cache/CacheService.ts:10
delete
▸ delete(key
): boolean
Parameters
Name | Type |
---|---|
key | string |
Returns
boolean
Defined in
src/shared/cache/CacheService.ts:14
has
▸ has(key
): boolean
Parameters
Name | Type |
---|---|
key | string |
Returns
boolean
Defined in
src/shared/cache/CacheService.ts:18
getAll
▸ getAll(): T
[]
Returns
T
[]
Defined in
src/shared/cache/CacheService.ts:22
flushAll
▸ flushAll(): void
Returns
void