Configuring persistence in a YAML configuration file
You can enable and configure correlator persistence in the following ways:

Using a YAML configuration file as described here.

On the command line, using the persistence options of the 
correlator executable. See 
    
Starting the correlator for more information on these options.
On the command line, the persistence options are given as -Poption=value.
In a configuration file, they are given as follows:
correlator:
  persistence:
    option: value
All of persistence options for the command line can also be specified in a configuration file. Special notations are required for the following options:
 -P
-P without further options or 
-Penabled=true enables persistence. In a configuration file, this is specified as follows:
correlator:
  persistence:
    enabled: true
 -Pclear
-Pclear does not have a value; it is implicitly set to 
true. In a configuration file, this is specified as follows:
correlator:
  persistence:
     clear: true
The following is a list of all the options that you can specify in a configuration file:
 enabled: boolean
enabled: boolean snapshotIntervalMillis: interval
snapshotIntervalMillis: interval adjustSnapshot: boolean
adjustSnapshot: boolean storeLocation: path
storeLocation: path storeName: filename
storeName: filename clear: boolean
clear: booleanThe following sample shows the format of a YAML configuration file that is used to specify the persistence options:
correlator:
  persistence:
    enabled: true
    snapshotIntervalMillis: 12000
    storeLocation: ${PARENT_DIR}/store
    storeName: mystore.db
    clear: false
For detailed information on correlator persistence, see 
    
Using Correlator Persistence and especially its subtopic 
    
Enabling correlator persistence which provides more information on the different persistence options.