ContentsIndex
Framework.API.Cache
Contents
Cache API
Synopsis
cacheGet :: String -> AController (Maybe String)
cachePut :: String -> String -> AController Bool
cacheUnset :: String -> AController Bool
tryReturnFromCache :: String -> AController ()
cached :: String -> AController String -> AController String
Cache API
cacheGet
:: StringKey
-> AController (Maybe String)
Get a value from cache
cachePut
:: StringKey
-> StringValue
-> AController Bool
Put a value to cache
cacheUnset
:: StringKey
-> AController Bool
Unset key in cache
tryReturnFromCache
:: StringKey
-> AController ()
If named item is in cache, return its value. Otherwise, do nothing.
cached :: String -> AController String -> AController String
Produced by Haddock version 2.4.2