Class: PersistenceStoreFactory

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, optionsopt) → {Promise.<PersistenceStore>}

Parameters:
Name Type Attributes 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 Attributes Description
version string <optional>
The version of the store.
Source:
Returns:
returns a Promise that is resolved to a PersistenceStore instance.
Type
Promise.<PersistenceStore>