Methods
addConflictableKeys(keys)
#
Add keys which will need to be conflict-aware
Parameters:
Name | Type | Description |
---|---|---|
keys |
Object | Object with conflict-aware keys as keys, and value set to true |
Add keys which will need to be conflict-aware
get()
#
isConflicted() → {boolean}
#
Check if another process has written to the shared storage, leaving our data in a conflicted state.
Returns:
Data is conflicted
- Type
- boolean
Check if another process has written to the shared storage, leaving our data in a conflicted state.
overwriteFromBackup()
#
Overwrite data in the store from our in-memory backup
Only keys added in #addConflictableKeys are restored
Overwrite data in the store from our in-memory backup
Only keys added in #addConflictableKeys are restored