Deletes a key in the database or deletes all keys in the database.
Optionalkey: stringThe key to delete. If this is undefined, then all keys should be deleted.
Gets the value of a specific key in the database.
The key to retrieve.
The value of the given key, null if no such value exists and no fallback was provided.
Gets the value of a specific key in the database.
The key to retrieve.
The fallback value. If the key does not exist in the database, then this will be inserted automatically.
The value of the given key or the inserted fallback value if the key does not exist.
Represents a set of database operations for an in-memory database.
These kinds of databases are key value pairs similar to redis, local storage, sessions storage, etc.