mbug-1.1: download bugs mailboxes

Safe HaskellSafe
LanguageHaskell2010

MBug.Cache

Synopsis

Documentation

cachedIO :: Text -> IO ByteString -> IO (FilePath, ByteString) Source #

Perform IO action labeled with some Text value, if no actions with same label were executed for last 15 minutes; return path to file, containing cached value and value itself.

cachedIO_ :: Text -> IO ByteString -> IO ByteString Source #

Same as cachedIO, but ignore information about cache file.