Initializes a new instance of this object.
The options for the database. The url is the only field used.
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 memory database where the data is housed in a single json file.