Storage
storage.Storage
Type parameters
Name | Type |
---|---|
T |
StorageValueType |
Implements
IStorage
<T
>
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
Defined in
src/core/storage/storage.ts#27
delete
delete(key
): IStorage
<T
>
Parameters
Name | Type |
---|---|
key |
string |
Returns
IStorage
<T
>
Implementation of
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
Defined in
src/core/storage/storage.ts#37
exists
exists(key
): boolean
Parameters
Name | Type |
---|---|
key |
string |
Returns
boolean
Implementation of
Defined in
src/core/storage/storage.ts#41
clear
clear(): IStorage
<T
>
Returns
IStorage
<T
>
Implementation of
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
Defined in
jodit/src/core/storage/storage.ts:59