Dotloom TypeScript API
Preparing search index...
sdk/src
MemoryStorage
Class MemoryStorage
In-memory storage (tests, SSR, previews).
Implements
StorageAdapter
Index
Constructors
constructor
Properties
id
Methods
list
meta
read
remove
write
Constructors
constructor
new
MemoryStorage
()
:
MemoryStorage
Returns
MemoryStorage
Properties
Readonly
id
id
:
"memory"
= 'memory'
Methods
list
list
()
:
Promise
<
StoredFile
[]
>
Returns
Promise
<
StoredFile
[]
>
meta
meta
(
key
:
string
)
:
Promise
<
StoredMeta
|
null
>
Parameters
key
:
string
Returns
Promise
<
StoredMeta
|
null
>
read
read
(
key
:
string
)
:
Promise
<
Uint8Array
<
ArrayBufferLike
>
|
null
>
Parameters
key
:
string
Returns
Promise
<
Uint8Array
<
ArrayBufferLike
>
|
null
>
remove
remove
(
key
:
string
)
:
Promise
<
void
>
Parameters
key
:
string
Returns
Promise
<
void
>
write
write
(
key
:
string
,
bytes
:
Uint8Array
,
meta
:
StoredMeta
)
:
Promise
<
void
>
Parameters
key
:
string
bytes
:
Uint8Array
meta
:
StoredMeta
Returns
Promise
<
void
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
id
Methods
list
meta
read
remove
write
Dotloom TypeScript API
Loading...
In-memory storage (tests, SSR, previews).