Skip to content

Documentation / js-sdk-core / InMemoryCache

Class: InMemoryCache

Implements

Constructors

new InMemoryCache(undefined)

new InMemoryCache(): InMemoryCache

Returns

InMemoryCache

Properties

_cache

private _cache: Object = {}

Index signature

[key: string]: unknown

Methods

del()

del(key): void

Parameters

key: string

Returns

void

Implementation of

js-sdk-core.Storage.del


get()

get(key): unknown

Parameters

key: string

Returns

unknown

Implementation of

js-sdk-core.Storage.get


getKeys()

getKeys(): string[]

Returns

string[]

Implementation of

js-sdk-core.Storage.getKeys


put()

put(key, val): void

Parameters

key: string

val: unknown

Returns

void

Implementation of

js-sdk-core.Storage.put