Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
- cachedIO :: Text -> IO ByteString -> IO (FilePath, ByteString)
- cachedIO_ :: Text -> IO ByteString -> IO ByteString
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.