Skip to main content
Skip to main content

ICacheService

Methods

get

**get**<TypeParameter T>(key): Promise&#60;null \| T&#62;

TobjectRequired

Parameters

keystringRequired

Returns

Promise<null | T>

PromisePromise<null | T>Required

invalidate

**invalidate**(key): Promise&#60;void&#62;

Parameters

keystringRequired

Returns

Promise<void>

PromisePromise<void>Required

set

**set**(key, data, ttl?): Promise&#60;void&#62;

Parameters

keystringRequired
dataunknownRequired
ttlnumber

Returns

Promise<void>

PromisePromise<void>Required
Was this section helpful?