The type of the data to store and retrieve.
The type of the data from the JSON representation of the storage driver.
ReadonlybandwidthIndicates the speed of the storage driver.
ReadonlyisIndicates whether or not the storage driver has been initialized.
ReadonlynameThe name of the storage driver.
Clears the stored data.
Clears the stored data and returns the Promise of Result.
Promise of the result object, see Result
Retrieves the stored data.
Optionaloptions: IHydrateOptionsThe options to use for hydrating the data.
Promise that resolves to the stored data, or undefined if no data was stored.
Retrieves the stored data and returns the Promise of Result.
Optionaloptions: IHydrateOptionsThe options to use for hydrating the data.
Promise of the result object, see Result
Initializes the storage driver.
A boolean or promise of boolean that resolves to true if the storage driver was successfully initialized, or false otherwise.
Initializes the storage driver and returns the Promise of Result.
Promise of the result object, see Result
Stores the given data using the specified key.
Promise that resolves to the data to store.
Promise that resolves when the data has been stored.
Returns a JSON representation of the storage driver
Returns a string representation of the storage driver.
Unload the storage driver.
A promise that resolves to true if the storage driver was successfully unloaded, or false otherwise.
Unload the storage driver and returns the Promise of Result.
Promise of the result object, see Result
Interface for a storage driver that provides a simple interface for storing and retrieving data using a specified storage mechanism.
Template: Output
The type of the data to serialize and deserialize.
Since
v0.11.0