Padloc Logo Docs & Resources

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

Storage.clear

Defined in

core/src/storage.ts:52


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

Storage.delete

Defined in

core/src/storage.ts:51


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

Storage.get

Defined in

core/src/storage.ts:48


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

Storage.list

Defined in

core/src/storage.ts:53


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>

Implementation of

Storage.save

Defined in

core/src/storage.ts:47