TCache-0.5.5: A Transactional data cache with configurable persistenceSource codeContentsIndex
Data.TCache.Dynamic
Documentation
class IResource a whereSource
Methods
serialize :: a -> StringSource
deserialize :: String -> aSource
keyResource :: a -> StringSource
defPath :: a -> StringSource
readResource :: a -> IO (Maybe a)Source
writeResource :: a -> IO ()Source
delResource :: a -> IO ()Source
show/hide Instances
data Operation b Source
Constructors
Insert b
Delete b
setCache :: Cache a -> IO ()Source
refcache :: Cache aSource
defaultCheck :: Integer -> Integer -> Integer -> BoolSource
readFileStrict :: FilePath -> IO [Char]Source
data IDynamic Source
Constructors
forall a . (Typeable a, IResource a) => IDynamic a
show/hide Instances
type Cache a = IORef (Ht a, Integer)Source
class DynamicInterface x whereSource
Methods
toIDyn :: x -> IDynamicSource
registerType :: IO xSource
fromIDyn :: IDynamic -> xSource
unsafeFromIDyn :: IDynamic -> xSource
show/hide Instances
data Key Source
Constructors
Key String
show/hide Instances
getDTVars :: [IDynamic] -> IO [Maybe (TVar IDynamic)]Source
withDResource :: IDynamic -> (Maybe IDynamic -> IDynamic) -> IO ()Source
withDResources :: [IDynamic] -> ([Maybe IDynamic] -> [IDynamic]) -> IO ()Source
withDResourcesID :: [IDynamic] -> ([Maybe IDynamic] -> [Operation IDynamic]) -> IO ()Source
getDResource :: IDynamic -> IO (Maybe IDynamic)Source
getDResources :: [IDynamic] -> IO [Maybe IDynamic]Source
deleteDResource :: IDynamic -> IO ()Source
deleteDResources :: [IDynamic] -> IO ()Source
syncCache :: IO ()Source
clearSyncCacheProc :: Int -> (Integer -> Integer -> Integer -> Bool) -> Int -> IO ThreadIdSource
withResource :: (Typeable a, IResource a) => a -> (Maybe a -> a) -> IO ()Source
withResources :: (Typeable a, IResource a) => [a] -> ([Maybe a] -> [a]) -> IO ()Source
withResourcesID :: (Typeable a, IResource a) => [a] -> ([Maybe a] -> [Operation a]) -> IO ()Source
getResource :: (Typeable a, IResource a) => a -> IO (Maybe a)Source
getResources :: (Typeable a, IResource a) => [a] -> IO [Maybe a]Source
deleteResource :: (Typeable a, IResource a) => a -> IO ()Source
deleteResources :: (Typeable a, IResource a) => [a] -> IO ()Source
Produced by Haddock version 2.6.0