Constructor
Adds an object to the storage provider obj: The object to add key: The key to add the object with options: The options to add the object with Returns a promise that resolves when the operation is complete
Clears the storage provider of all items Returns a promise that resolves when the operation is complete
Compacts the storage provider. This is used to remove expired items from the storage provider. This method is called automatically by the cache. Returns a promise that resolves when the operation is complete
Gets the options for an object in the storage provider by key key: The key of the object to get the options for Returns a promise that resolves with the options
Gets the value associated with the specified key. If the value does not exist, it creates a new value using the fallBack promise. key: The key of the object to get or create fallBack: The promise to create the object if it does not exist options: The options to use when creating the object Returns a promise that resolves with the object
Removes an object from the storage provider key: The key of the object to remove Returns a promise that resolves when the operation is complete
The InMemoryStorageProvider class is used to store objects in memory