DEFAULT_SAVE_FREQUENCY
DEFAULT_SAVE_FREQUENCY
If not specified in the constructor, this will be the number of operations between saves
A PersistentStructure is a data structure which every so many operations will be saved to secondary storage (such as disk).
An operation occurs whenever the PersistentStructure's checkSave method is called. A PersistentStructure also supports the ability to be load (read in from) secondary storage.
__construct(string $fname, integer $save_frequency = self::DEFAULT_SAVE_FREQUENCY)
Sets up the file name and save frequency for the PersistentStructure, initializes the oepration count
string | $fname | the name of the file to store the PersistentStructure in |
integer | $save_frequency | the number of operation before a save If <= 0 never check save |