Skip to content

InMemoryCachingStrategy

Extends

Constructors

new InMemoryCachingStrategy()

new InMemoryCachingStrategy(): InMemoryCachingStrategy

Returns

InMemoryCachingStrategy

Overrides

GenericCache.constructor

Source

caching/InMemoryCachingStrategy.ts:5

Methods

get()

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

Type parameters

T

Parameters

cacheKey: string

Returns

Promise<null | T & ICachable>

Inherited from

GenericCache.get

Source

caching/GenericCache.ts:46


getOrCreate()

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

Type parameters

T

Parameters

cacheKey: string

createFunction

updateFunction?

Returns

Promise<T & ICachable>

Inherited from

GenericCache.getOrCreate

Source

caching/GenericCache.ts:20


remove()

remove(cacheKey): Promise<void>

Parameters

cacheKey: string

Returns

Promise<void>

Inherited from

GenericCache.remove

Source

caching/GenericCache.ts:100


set()

set(cacheKey, value, expiresIn): Promise<void>

Parameters

cacheKey: string

value: object

expiresIn: number

Returns

Promise<void>

Inherited from

GenericCache.set

Source

caching/GenericCache.ts:82


setCacheItem()

setCacheItem(cacheKey, cacheItem): Promise<void>

Parameters

cacheKey: string

cacheItem: ICachable

Returns

Promise<void>

Inherited from

GenericCache.setCacheItem

Source

caching/GenericCache.ts:92