Skip to main content

cache_inmemory_lru_src.default

Class: default<V\>#

cache/inmemory-lru/src.default

Type parameters#

NameDefault
Vany

Implements#

Table of contents#

Constructors#

Methods#

Constructors#

constructor#

+ new default<V\>(__namedParameters?: Options<string, V\>): default<V\>

Type parameters:#

NameDefault
Vany

Parameters:#

NameTypeDefault value
__namedParametersOptions<string, V\>{}

Returns: default<V\>

Defined in: packages/cache/inmemory-lru/src/index.ts:7

Methods#

delete#

delete(key: string): Promise<void\>

Parameters:#

NameType
keystring

Returns: Promise<void\>

Implementation of: KeyValueCache

Defined in: packages/cache/inmemory-lru/src/index.ts:30


get#

get(key: string): Promise<V\>

Parameters:#

NameType
keystring

Returns: Promise<V\>

Implementation of: KeyValueCache

Defined in: packages/cache/inmemory-lru/src/index.ts:21


set#

set(key: string, value: V, options?: KeyValueCacheSetOptions): Promise<void\>

Parameters:#

NameType
keystring
valueV
options?KeyValueCacheSetOptions

Returns: Promise<void\>

Implementation of: KeyValueCache

Defined in: packages/cache/inmemory-lru/src/index.ts:25