-- Hoogle documentation, generated by Haddock -- See Hoogle, http://www.haskell.org/hoogle/ -- | A Cached variable for IO functions. -- -- This package allows for caching IO functions, either on a timeout or -- designed to only fetch once. @package Concurrent-Cache @version 0.2.0.0 module Control.Concurrent.Cache data CachedData a -- | Fetch data from a cache fetch :: CachedData a -> IO (a) -- | Create a cache with a timeout from an (IO ()) function. createReadOnceCache :: IO (a) -> IO (CachedData a) -- | Create a cache with a timeout from an (IO ()) function. createTimedCache :: Int -> Bool -> IO (a) -> IO (CachedData a)