Class: VoidStorage
storage.VoidStorage
Implements
Constructors
constructor
• new VoidStorage()
Methods
clear
▸ clear(): Promise
<void
>
Deletes all data in this storage
Returns
Promise
<void
>
Implementation of
Defined in
delete
▸ delete<T
>(_obj
): Promise
<void
>
Deletes an object
Type parameters
Name | Type |
---|---|
T |
extends Storable <T > |
Parameters
Name | Type |
---|---|
_obj |
T |
Returns
Promise
<void
>
Implementation of
Defined in
get
▸ get<T
>(_cls
, _id
): Promise
<T
>
Retrieves an object of type T
based on its id
Type parameters
Name | Type |
---|---|
T |
extends Storable <T > |
Parameters
Name | Type |
---|---|
_cls |
T | StorableConstructor <T > |
_id |
string |
Returns
Promise
<T
>
Implementation of
Defined in
list
▸ list<T
>(_cls
, _opts?
): Promise
<never
[]>
Retrieves an object of type T
based on its id
Type parameters
Name | Type |
---|---|
T |
extends Storable <T > |
Parameters
Name | Type |
---|---|
_cls |
StorableConstructor <T > |
_opts? |
StorageListOptions <T > |
Returns
Promise
<never
[]>
Implementation of
Defined in
save
▸ save<T
>(_obj
): Promise
<void
>
Saves an object to the storage
Type parameters
Name | Type |
---|---|
T |
extends Storable <T > |
Parameters
Name | Type |
---|---|
_obj |
T |
Returns
Promise
<void
>