Expand all

ve.init.createConflictableStorage~ConflictableStorage

Constructor

new ve.init.createConflictableStorage~ConflictableStorage(store) #

Parameters:

Name Type Description
store Storage | undefined

The Storage instance to wrap around

Source:

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

Source:
Add keys which will need to be conflict-aware

isConflicted() → {boolean} #

Check if another process has written to the shared storage, leaving our data in a conflicted state.

Source:

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

Source:

Overwrite data in the store from our in-memory backup

Only keys added in #addConflictableKeys are restored