Uses a JSON file to store key/value pairs.
Private
Readonly
Deletes the value stored for the given key.
Key to delete.
If there was a value to delete.
An iterable of entries in the storage.
Returns the value stored for the given identifier. undefined if no value is stored.
undefined
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.
The storage.
Updates the data in the JSON file while using a write lock.
A function that updates the JSON object.
The return value of updateFn.
updateFn
Uses a JSON file to store key/value pairs.