Skip to content

Interface: ResourcefulMemoryCache

Implements

  • CacheService

Methods

clear()

ts
clear(): void;

Returns

void


delete()

ts
delete(key: string): void;

Parameters

ParameterType
keystring

Returns

void

Implementation of

ts
CacheService.delete;

get()

ts
get<T>(key: string): T | undefined;

Type Parameters

Type ParameterDefault type
Tany

Parameters

ParameterType
keystring

Returns

T | undefined

Implementation of

ts
CacheService.get;

has()

ts
has(key: string): boolean;

Parameters

ParameterType
keystring

Returns

boolean

Implementation of

ts
CacheService.has;

pull()

ts
pull<T>(key: string): T | undefined;

Type Parameters

Type ParameterDefault type
Tany

Parameters

ParameterType
keystring

Returns

T | undefined

Implementation of

ts
CacheService.pull;

set()

ts
set<T>(
   key: string,
   value: T,
   ttl: number | null): void;

Type Parameters

Type ParameterDefault type
Tany

Parameters

ParameterType
keystring
valueT
ttlnumber | null

Returns

void

Implementation of

ts
CacheService.set;