Simple key value store where and each value is a file.
This project is a fork of lossy-store where raw fs is replaced with atomic-file-rw to provide browser support.
create a lossy store with the given codec (or JSON by default) at
the dir
returns true if this key is currently in the store.
ensure that this key is loaded from the file system.
if the file has already been read, cb
is called immediately.
if set
is called while waiting for the filesystem, cb
is called immediately.
get the current value for key, loading it if necessary
return the currently set value
for key
. may be null.
Set a new value. this will trigger a write to be performed (at some point)
Delete a key-value from the store.
MIT