Private
modifiedList of keys modified in this transaction, if any.
Private
originalStores data in the keys we modify prior to modifying them. Allows us to roll back commits.
Private
storePrivate
_hasPrivate
markAdds the data to the store under the given key.
The key to add the data under.
The data to add to the store.
If 'true', overwrite any existing data. If 'false', avoids storing the data if the key exists.
True if storage succeeded, false otherwise.
Private
stashStashes given key value pair into originalData
if it doesn't already
exist. Allows us to stash values the program is requesting anyway to
prevent needless get
requests if the program modifies the data later
on during the transaction.
Generated using TypeDoc
A simple RW transaction for simple synchronous key-value stores.