ContentsIndex
Framework.Cache.Types
Synopsis
class CacheBackend b where
cinit :: String -> IO b
cget :: Serializable v => b -> String -> IO (Maybe v)
cput :: Serializable v => b -> String -> v -> IO Bool
cunset :: b -> String -> IO Bool
cfree :: b -> IO ()
data CacheConnection = forall b . CacheBackend b => CConnection b
Documentation
class CacheBackend b where
Methods
cinit :: String -> IO b
Init cache backend
cget :: Serializable v => b -> String -> IO (Maybe v)
Get data from cache
cput :: Serializable v => b -> String -> v -> IO Bool
Put data to cache
cunset :: b -> String -> IO Bool
Unset data
cfree :: b -> IO ()
Free backend
show/hide Instances
data CacheConnection
Type to incapsulate connection to any cache backend.
Constructors
forall b . CacheBackend b => CConnection b
show/hide Instances
Produced by Haddock version 2.4.2