Skip to content

ICachingStrategy

Methods

get()

get<T>(cacheKey): Promise<null | T & ICachable>

Type parameters

T

Parameters

cacheKey: string

Returns

Promise<null | T & ICachable>

Source

types.ts:63


getOrCreate()

getOrCreate<T>(cacheKey, createFunction, updateFunction?): Promise<T & ICachable>

Type parameters

T

Parameters

cacheKey: string

createFunction

updateFunction?

Returns

Promise<T & ICachable>

Source

types.ts:57


remove()

remove(cacheKey): void | Promise<void>

Parameters

cacheKey: string

Returns

void | Promise<void>

Source

types.ts:65


setCacheItem()

setCacheItem<T>(cacheKey, item): void | Promise<void>

Type parameters

T

Parameters

cacheKey: string

item: T & ICachable

Returns

void | Promise<void>

Source

types.ts:64