Skip to main content

@terascope/teraslice-state-storage / cached-state-storage / default

Class: default<T>

Extends

  • EventEmitter

Type parameters

Type parameter
T

Constructors

new default()

new default<T>(config): default<T>

Parameters

ParameterType
configCacheConfig

Returns

default<T>

Overrides

EventEmitter.constructor

Source

cached-state-storage/index.ts:11

Methods

clear()

clear(): void

Returns

void

Source

cached-state-storage/index.ts:60


count()

count(): number

Returns

number

Source

cached-state-storage/index.ts:41


get()

get(key): undefined | T

Parameters

ParameterType
keystring | number

Returns

undefined | T

Source

cached-state-storage/index.ts:16


has()

has(key): boolean

Parameters

ParameterType
keystring | number

Returns

boolean

Source

cached-state-storage/index.ts:56


mget()

mget(keyArray): MGetCacheResponse

Parameters

ParameterType
keyArray(string | number)[]

Returns

MGetCacheResponse

Source

cached-state-storage/index.ts:20


mset()

mset(docArray): void

Parameters

ParameterType
docArraySetTuple<T>[]

Returns

void

Source

cached-state-storage/index.ts:35


set()

set(key, value): void

Parameters

ParameterType
keystring | number
valueT

Returns

void

Source

cached-state-storage/index.ts:28


values()

values(fn): Promise<void>

Parameters

ParameterType
fnValuesFn<T>

Returns

Promise<void>

Source

cached-state-storage/index.ts:45