Documentation
Type Aliases
CacheStorage

Type alias: CacheStorage<KeyType, ValueType>

CacheStorage<KeyType, ValueType>: object

Type parameters

Parameter
KeyType
ValueType extends any

Type declaration

get

get: (key) => Promise<ValueType | undefined> | ValueType | undefined

Parameters

ParameterType
keyKeyType

Returns

Promise<ValueType | undefined> | ValueType | undefined

set

set: (key, value) => Promise<unknown> | unknown

Parameters

ParameterType
keyKeyType
valueValueType

Returns

Promise<unknown> | unknown

Source

src/utils/cache.ts:3 (opens in a new tab)