Loom Engine - v3.1.1
GitHub
TheWorldTable.ai
Preparing search index...
PersistentStorage
Class PersistentStorage
Index
Methods
create
save
load
remove
has
Key
list
Keys
clear
All
save
Snapshot
load
Snapshot
dispose
Methods
Static
create
create
(
opts
:
PersistentStorageOptions
)
:
PersistentStorage
Parameters
opts
:
PersistentStorageOptions
Returns
PersistentStorage
save
save
(
key
:
string
,
data
:
unknown
)
:
Promise
<
void
>
Parameters
key
:
string
data
:
unknown
Returns
Promise
<
void
>
load
load
(
key
:
string
)
:
Promise
<
unknown
>
Parameters
key
:
string
Returns
Promise
<
unknown
>
remove
remove
(
key
:
string
)
:
Promise
<
void
>
Parameters
key
:
string
Returns
Promise
<
void
>
has
Key
hasKey
(
key
:
string
)
:
Promise
<
boolean
>
Parameters
key
:
string
Returns
Promise
<
boolean
>
list
Keys
listKeys
()
:
Promise
<
string
[]
>
Returns
Promise
<
string
[]
>
clear
All
clearAll
()
:
Promise
<
void
>
Returns
Promise
<
void
>
save
Snapshot
saveSnapshot
(
key
:
string
,
snap
:
WorldSnapshot
)
:
Promise
<
void
>
Parameters
key
:
string
snap
:
WorldSnapshot
Returns
Promise
<
void
>
load
Snapshot
loadSnapshot
(
key
:
string
)
:
Promise
<
WorldSnapshot
|
null
>
Parameters
key
:
string
Returns
Promise
<
WorldSnapshot
|
null
>
dispose
dispose
()
:
void
Returns
void
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Methods
create
save
load
remove
has
Key
list
Keys
clear
All
save
Snapshot
load
Snapshot
dispose
GitHub
TheWorldTable.ai
Loom Engine - v3.1.1
Loading...