LocalStorageProvider
storage.LocalStorageProvider
Persistent storage in localStorage
Type parameters
Name | Type |
---|---|
T |
StorageValueType |
Implements
IStorage
<T
>
constructor
new LocalStorageProvider<T
>(rootKey
): LocalStorageProvider
<T
>
Type parameters
Name | Type |
---|---|
T |
StorageValueType |
Parameters
Name | Type |
---|---|
rootKey |
string |
Returns
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
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
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
Defined in
src/core/storage/engines/local-storage-provider.ts#69
exists
exists(key
): boolean
Parameters
Name | Type |
---|---|
key |
string |
Returns
boolean
Implementation of
Defined in
src/core/storage/engines/local-storage-provider.ts#79
clear
clear(): IStorage
<T
>
Returns
IStorage
<T
>
Implementation of
Defined in
jodit/src/core/storage/engines/local-storage-provider.ts:85