Uses a JSON file to store key/value pairs.
Deletes the value stored for the given key.
If there was a value to delete.
Key to delete.
An iterable of entries in the storage.
Returns the value stored for the given identifier.
undefined if no value is stored.
Reads and parses the data from the JSON file (without locking).
Acquires the data in the JSON file while using a read lock.
Checks if there is a value stored for the given key.
Sets the value for the given key.
Key to set/update.
Value to store.
Updates the data in the JSON file while using a write lock.
The return value of
A function that updates the JSON object.