Class: FileSystemPersistenceStoreFactory

QuickNav

FileSystemPersistenceStoreFactory

PersistenceStoreFactory that creates filesystem backed PersistenceStore instance. Requires the device to have the cordova-file-plugin installed. Each PersistenceStore will be saved as a directory and each entry in that store will be a file in the directory. Please configure the location where the directories will be stored in the cordova-file-plugin.

Methods

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

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 filesystem backed PersistenceStore instance.
Type
Promise.<FileSystemPersistenceStore>