Documentation
data Cached m s d a Source #
Constructors
Cached | |
Fields - cacheFile :: FilePath
- cacheLens :: Maybe (CacheLens s d a)
- cachedAction :: TimedCacheFiles -> d -> Maybe a -> m ([FilePath], a)
cachedAction tcf data ma tcf : Input file timestamps. Not technically necessary, just an
optimizazion when knowing which input files changed can make updating the
cache fasterdata : Arbitrary static input data to cache action. Can be used to
invalidate the cache using something other than file timestamps
i.e. environment tool version numbersma : Cached data if it existed
Returns: fst : Input files used in generating the cachesnd : Cache data, will be stored alongside the static input data in the
cacheFile
The cached action, will only run if one of the following is true: cacheFile doesn't exist yetcacheFile exists and inputData changed- any files returned by the cached action changed
|