Skip to content

LimitedMemoryAdapter

Implements

Constructors

new LimitedMemoryAdapter(options)

1
new LimitedMemoryAdapter(options: LimitedMemoryAdapterOptions): LimitedMemoryAdapter

Parameters

ParameterType
optionsLimitedMemoryAdapterOptions

Returns

LimitedMemoryAdapter

Source

seyfert/src/cache/adapters/limited.ts:34

Properties

PropertyModifierType
isAsyncpublicboolean
optionspublicMakeRequired<LimitedMemoryAdapterOptions, "default">
relationshipsreadonlyMap<string, Map<string, string[]>>
storagereadonlyMap<string, LimitedCollection<string, string>>

Methods

addToRelationship()

1
addToRelationship(to: string, keys: string | string[]): void

Parameters

ParameterType
tostring
keysstring | string[]

Returns

void

Implementation of

Adapter.addToRelationship

Source

seyfert/src/cache/adapters/limited.ts:216


bulkAddToRelationShip()

1
bulkAddToRelationShip(data: Record<string, string[]>): void

Parameters

ParameterType
dataRecord<string, string[]>

Returns

void

Implementation of

Adapter.bulkAddToRelationShip

Source

seyfert/src/cache/adapters/limited.ts:210


contains()

1
contains(to: string, keys: string): boolean

Parameters

ParameterType
tostring
keysstring

Returns

boolean

Implementation of

Adapter.contains

Source

seyfert/src/cache/adapters/limited.ts:195


count()

1
count(to: string): number

Parameters

ParameterType
tostring

Returns

number

Implementation of

Adapter.count

Source

seyfert/src/cache/adapters/limited.ts:178


flush()

1
flush(): void

Returns

void

Implementation of

Adapter.flush

Source

seyfert/src/cache/adapters/limited.ts:190


get()

get(keys)

1
get(keys: string): any
Parameters
ParameterType
keysstring
Returns

any

Implementation of

Adapter.get

Source

seyfert/src/cache/adapters/limited.ts:61

get(keys)

1
get(keys: string[]): any[]
Parameters
ParameterType
keysstring[]
Returns

any[]

Implementation of

Adapter.get

Source

seyfert/src/cache/adapters/limited.ts:62


getToRelationship()

1
getToRelationship(to: string): string[]

Parameters

ParameterType
tostring

Returns

string[]

Implementation of

Adapter.getToRelationship

Source

seyfert/src/cache/adapters/limited.ts:199


keys()

1
keys(to: string): string[]

Parameters

ParameterType
tostring

Returns

string[]

Implementation of

Adapter.keys

Source

seyfert/src/cache/adapters/limited.ts:174


patch()

patch(updateOnly, keys, data)

1
patch(
2
updateOnly: boolean,
3
keys: string,
4
data: any): void
Parameters
ParameterType
updateOnlyboolean
keysstring
dataany
Returns

void

Implementation of

Adapter.patch

Source

seyfert/src/cache/adapters/limited.ts:139

patch(updateOnly, keys)

1
patch(updateOnly: boolean, keys: [string, any][]): void
Parameters
ParameterType
updateOnlyboolean
keys[string, any][]
Returns

void

Implementation of

Adapter.patch

Source

seyfert/src/cache/adapters/limited.ts:140


remove()

remove(keys)

1
remove(keys: string): void
Parameters
ParameterType
keysstring
Returns

void

Implementation of

Adapter.remove

Source

seyfert/src/cache/adapters/limited.ts:182

remove(keys)

1
remove(keys: string[]): void
Parameters
ParameterType
keysstring[]
Returns

void

Implementation of

Adapter.remove

Source

seyfert/src/cache/adapters/limited.ts:183


removeRelationship()

1
removeRelationship(to: string | string[]): void

Parameters

ParameterType
tostring | string[]

Returns

void

Implementation of

Adapter.removeRelationship

Source

seyfert/src/cache/adapters/limited.ts:243


removeToRelationship()

1
removeToRelationship(to: string, keys: string | string[]): void

Parameters

ParameterType
tostring
keysstring | string[]

Returns

void

Implementation of

Adapter.removeToRelationship

Source

seyfert/src/cache/adapters/limited.ts:231


scan()

scan(query, keys)

1
scan(query: string, keys?: false): any[]
Parameters
ParameterType
querystring
keys?false
Returns

any[]

Implementation of

Adapter.scan

Source

seyfert/src/cache/adapters/limited.ts:46

scan(query, keys)

1
scan(query: string, keys: true): string[]
Parameters
ParameterType
querystring
keystrue
Returns

string[]

Implementation of

Adapter.scan

Source

seyfert/src/cache/adapters/limited.ts:47


set()

set(keys, data)

1
set(keys: string, data: any): void
Parameters
ParameterType
keysstring
dataany
Returns

void

Implementation of

Adapter.set

Source

seyfert/src/cache/adapters/limited.ts:127

set(keys)

1
set(keys: [string, any][]): void
Parameters
ParameterType
keys[string, any][]
Returns

void

Implementation of

Adapter.set

Source

seyfert/src/cache/adapters/limited.ts:128


values()

1
values(to: string): any[]

Parameters

ParameterType
tostring

Returns

any[]

Implementation of

Adapter.values

Source

seyfert/src/cache/adapters/limited.ts:159