Deletes the value stored for the given key.
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.
Updates the data in the JSON file while using a write lock.
A function that updates the JSON object.
The return value of updateFn
.
Uses a JSON file to store key/value pairs.