Skip to main content

Class: MemoryCache

Implements

Constructors

constructor

new MemoryCache(): MemoryCache

Returns

MemoryCache

Methods

lookupValue

lookupValue(key): Promise<null | object>

Parameters

NameType
keyObject
key.functionId?string
key.functionTypestring
key.inputunknown

Returns

Promise<null | object>

Implementation of

Cache.lookupValue

Defined in

packages/modelfusion/src/core/cache/MemoryCache.ts:14


storeValue

storeValue(key, value): Promise<void>

Parameters

NameType
keyObject
key.functionId?string
key.functionTypestring
key.inputunknown
valueunknown

Returns

Promise<void>

Implementation of

Cache.storeValue

Defined in

packages/modelfusion/src/core/cache/MemoryCache.ts:22