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

NameType
keystring
valueT

Returns

T

Defined in

src/shared/cache/CacheService.ts:4


get

get(key): undefined | T

Parameters

NameType
keystring

Returns

undefined | T

Defined in

src/shared/cache/CacheService.ts:10


delete

delete(key): boolean

Parameters

NameType
keystring

Returns

boolean

Defined in

src/shared/cache/CacheService.ts:14


has

has(key): boolean

Parameters

NameType
keystring

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

Defined in

src/shared/cache/CacheService.ts:26

Was this helpful?