Within LTS Haskell 9.9 (ghc-8.0.2)
Force the atomic write of all cached objects modified since the last save into permanent storage. Cache writes allways save a coherent state. As allways, only the modified objects are written.
Saves the unsaved elems of the cache. Cache writes allways save a coherent state. Unlike syncChace this call deletes some elems of the cache when the number of elems > sizeObjects. The deletion depends on the check criteria, expressed by the first parameter. defaultCheck is the one implemented to be passed by default. Look at it to understand the clearing criteria.
Start the thread that periodically call clearSyncCache to clean and writes on the persistent storage. it is indirecly set by means of syncWrite, since it is more higuer level. I recommend to use the latter Otherwise, syncCache or clearSyncCache or atomicallySync must be invoked explicitly or no persistence will exist. Cache writes allways save a coherent state
Page 1 of 1