Hoogle Search
Within LTS Haskell 23.21 (ghc-9.8.4)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
-
TCache Data.TCache Force the atomic write of all cached objects modified since the last save into permanent storage. Cache writes allways save a coherent state. As always, only the modified objects are written.
clearSyncCache :: (Integer -> Integer -> Integer -> Bool) -> Int -> IO ()TCache Data.TCache Saves the unsaved elems of the cache. Cache writes allways save a coherent state. Unlike syncCache this call deletes some elems from 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.
clearSyncCacheProc :: Int -> (Integer -> Integer -> Integer -> Bool) -> Int -> IO ThreadIdTCache Data.TCache Start the thread that periodically call clearSyncCache to clean and writes on the persistent storage. it is indirectly 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