Skip to main content
Skip to main content

ICacheService

admin/discounts.internal.ICacheService

Methods

get

get<T>(key): Promise<null | T>

TobjectRequired

Parameters

keystringRequired

Returns

Promise<null | T>

PromisePromise<null | T>Required

invalidate

invalidate(key): Promise<void>

Parameters

keystringRequired

Returns

Promise<void>

PromisePromise<void>Required

set

set(key, data, ttl?): Promise<void>

Parameters

keystringRequired
dataunknownRequired
ttlnumber

Returns

Promise<void>

PromisePromise<void>Required
Was this section helpful?