LocalStorageProvider

storage.LocalStorageProvider

Persistent storage in localStorage

Type parameters

Name Type
T StorageValueType

Implements

constructor

new LocalStorageProvider<T>(rootKey): LocalStorageProvider<T>

Type parameters

Name Type
T StorageValueType

Parameters

Name Type
rootKey string

Returns

LocalStorageProvider<T>

Defined in

src/core/storage/engines/local-storage-provider.ts#83

rootKey

Readonly rootKey: string

Defined in

src/core/storage/engines/local-storage-provider.ts#83

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/local-storage-provider.ts#47


delete

delete(key): IStorage<T>

Parameters

Name Type
key string

Returns

IStorage<T>

Implementation of

IStorage.delete

Defined in

src/core/storage/engines/local-storage-provider.ts#61


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/local-storage-provider.ts#69


exists

exists(key): boolean

Parameters

Name Type
key string

Returns

boolean

Implementation of

IStorage.exists

Defined in

src/core/storage/engines/local-storage-provider.ts#79


clear

clear(): IStorage<T>

Returns

IStorage<T>

Implementation of

IStorage.clear

Defined in

jodit/src/core/storage/engines/local-storage-provider.ts:85