Class: PersistenceStoreFactory

QuickNav

PersistenceStoreFactory

Contract for a PersistenceStoreFactory that provides a factory method to create a PersisteneStore instance with the name and options. The options is the same as the one used in persistenceStoreManager.openStore. A default factory is provided that implements this contract. Customers can register custom store factory for creating persistence stores of their choice.

Methods

createPersistenceStore(name, options) → {Promise.<PersistenceStore>}

Parameters:
Name Type Argument Description
name string The name to be associated with the store.
options object <optional>
The configratuion options to be applied to the store.
Properties
Name Type Argument Description
version string <optional>
The version of the store.
Returns:
returns a Promise that is resolved to a PersistenceStore instance.
Type
Promise.<PersistenceStore>