Skip to main content

Class: CacheStore<T>

Type parameters

Name
T

Implements

Constructors

constructor

new CacheStore<T>(options?)

Type parameters

Name
T

Parameters

NameType
options?CacheOptions

Defined in

util/Store.ts:25

Methods

set

set(key, value, ttl?): boolean

Parameters

NameTypeDefault value
keystringundefined
valueTundefined
ttlnumber0

Returns

boolean

Implementation of

Store.set

Defined in

util/Store.ts:44


get

get(key): null | T

Parameters

NameType
keystring

Returns

null | T

Implementation of

Store.get

Defined in

util/Store.ts:50


delete

delete(key): boolean

Parameters

NameType
keystring

Returns

boolean

Implementation of

Store.delete

Defined in

util/Store.ts:61


clear

clear(): void

Returns

void

Implementation of

Store.clear

Defined in

util/Store.ts:65