Storage

storage.Storage

Type parameters

Name Type
T StorageValueType

Implements

prefix

Readonly prefix: string = StorageKey

Defined in

src/core/storage/storage.ts#25


provider

Readonly provider: IStorage<T>

Defined in

src/core/storage/storage.ts#51

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/storage.ts#27


delete

delete(key): IStorage<T>

Parameters

Name Type
key string

Returns

IStorage<T>

Implementation of

IStorage.delete

Defined in

src/core/storage/storage.ts#32


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/storage.ts#37


exists

exists(key): boolean

Parameters

Name Type
key string

Returns

boolean

Implementation of

IStorage.exists

Defined in

src/core/storage/storage.ts#41


clear

clear(): IStorage<T>

Returns

IStorage<T>

Implementation of

IStorage.clear

Defined in

src/core/storage/storage.ts#45


makeStorage

makeStorage(persistent?, suffix?): IStorage<StorageValueType>

Parameters

Name Type Default value
persistent boolean false
suffix? string undefined

Returns

IStorage<StorageValueType>

Defined in

jodit/src/core/storage/storage.ts:59