MemoryStorageProvider

storage.MemoryStorageProvider

Type parameters

Name Type
T StorageValueType

Implements

constructor

new MemoryStorageProvider<T>(): MemoryStorageProvider<T>

Type parameters

Name Type
T StorageValueType

Returns

MemoryStorageProvider<T>

set

set(key, value): IStorage<T>

Parameters

Name Type
key string
value T

Returns

IStorage<T>

Implementation of

IStorage.set

Defined in

src/core/storage/engines/memory-storage-provider.ts#18


delete

delete(key): IStorage<T>

Parameters

Name Type
key string

Returns

IStorage<T>

Implementation of

IStorage.delete

Defined in

src/core/storage/engines/memory-storage-provider.ts#23


get

get<R>(key): void | R

Type parameters

Name Type
R T

Parameters

Name Type
key string

Returns

void | R

Implementation of

IStorage.get

Defined in

src/core/storage/engines/memory-storage-provider.ts#28


exists

exists(key): boolean

Parameters

Name Type
key string

Returns

boolean

Implementation of

IStorage.exists

Defined in

src/core/storage/engines/memory-storage-provider.ts#32


clear

clear(): IStorage<T>

Returns

IStorage<T>

Implementation of

IStorage.clear

Defined in

jodit/src/core/storage/engines/memory-storage-provider.ts:36