Class: MemoryCache
Implements
Constructors
constructor
• new MemoryCache(): MemoryCache
Returns
Methods
lookupValue
▸ lookupValue(key
): Promise
<null
| object
>
Parameters
Name | Type |
---|---|
key | Object |
key.functionId? | string |
key.functionType | string |
key.input | unknown |
Returns
Promise
<null
| object
>
Implementation of
Defined in
packages/modelfusion/src/core/cache/MemoryCache.ts:14
storeValue
▸ storeValue(key
, value
): Promise
<void
>
Parameters
Name | Type |
---|---|
key | Object |
key.functionId? | string |
key.functionType | string |
key.input | unknown |
value | unknown |
Returns
Promise
<void
>