The Guild LogoThe Guild Monogram

Search docs

Search icon

Products by The Guild

Products

Hive logoHive blurred logo

Hive

Schema Registry for your GraphQL Workflows

Skip to main content

Class: default<V\>

cache/inmemory-lru/src.default

Type parameters#

NameType
VV = any

Implements#

Table of contents#

Constructors#

Methods#

Constructors#

constructor#

new default<V\>(__namedParameters?)

Type parameters#

NameType
VV = any

Parameters#

NameType
__namedParametersObject
__namedParameters.max

Defined in#

packages/cache/inmemory-lru/src/index.ts:8

Methods#

delete#

delete(key): Promise<void\>

Parameters#

NameType
keystring

Returns#

Promise<void\>

Implementation of#

KeyValueCache.delete

Defined in#

packages/cache/inmemory-lru/src/index.ts:26


get#

get(key): Promise<V\>

Parameters#

NameType
keystring

Returns#

Promise<V\>

Implementation of#

KeyValueCache.get

Defined in#

packages/cache/inmemory-lru/src/index.ts:10


set#

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

Parameters#

NameType
keystring
valueV
options?KeyValueCacheSetOptions

Returns#

Promise<void\>

Implementation of#

KeyValueCache.set

Defined in#

packages/cache/inmemory-lru/src/index.ts:19