hakyll-1.4: A simple static site generator library.Source codeContentsIndex
Text.Hakyll.Internal.Cache
Synopsis
storeInCache :: Binary a => a -> FilePath -> Hakyll ()
getFromCache :: Binary a => FilePath -> Hakyll a
isCacheMoreRecent :: FilePath -> [FilePath] -> Hakyll Bool
Documentation
storeInCache :: Binary a => a -> FilePath -> Hakyll ()Source
We can store all datatypes instantiating Binary to the cache. The cache directory is specified by the HakyllConfiguration, usually _cache.
getFromCache :: Binary a => FilePath -> Hakyll aSource
Get a value from the cache. The filepath given should not be located in the cache. This function performs a timestamp check on the filepath and the filepath in the cache, and only returns the cached value when it is still up-to-date.
isCacheMoreRecent :: FilePath -> [FilePath] -> Hakyll BoolSource
Check if a file in the cache is more recent than a number of other files.
Produced by Haddock version 2.6.0