Field Notes
Field Notes home
Docs
Playground
Preparing search index...
@fieldnotes/core
StorageAdapter
Interface StorageAdapter
interface
StorageAdapter
{
clear
(
key
:
string
)
:
Promise
<
void
>
;
load
(
key
:
string
)
:
Promise
<
string
|
null
>
;
save
(
key
:
string
,
value
:
string
)
:
Promise
<
void
>
;
}
Implemented by
IndexedDBAdapter
LocalStorageAdapter
MemoryAdapter
Index
Methods
clear
load
save
Methods
clear
clear
(
key
:
string
)
:
Promise
<
void
>
Parameters
key
:
string
Returns
Promise
<
void
>
load
load
(
key
:
string
)
:
Promise
<
string
|
null
>
Parameters
key
:
string
Returns
Promise
<
string
|
null
>
save
save
(
key
:
string
,
value
:
string
)
:
Promise
<
void
>
Parameters
key
:
string
value
:
string
Returns
Promise
<
void
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Methods
clear
load
save
Field Notes home
Docs
Playground
Field Notes
Loading...