Copyright | Will Thompson, Iñaki García Etxebarria and Jonas Platte |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria (garetxe@gmail.com) |
Safe Haskell | None |
Language | Haskell2010 |
- newtype Cache = Cache (ForeignPtr Cache)
- class GObject o => CacheK o
- toCache :: CacheK o => o -> IO Cache
- noCache :: Maybe Cache
- cacheClear :: (MonadIO m, CacheK a) => a -> m ()
- cacheDump :: (MonadIO m, CacheK a) => a -> m ()
- cacheFlush :: (MonadIO m, CacheK a) => a -> m ()
- cacheGetMaxSize :: (MonadIO m, CacheK a) => a -> m Word32
- cacheLoad :: (MonadIO m, CacheK a) => a -> m ()
- cacheNew :: MonadIO m => Text -> CacheType -> m Cache
- cacheSetMaxSize :: (MonadIO m, CacheK a) => a -> Word32 -> m ()
- data CacheCacheDirPropertyInfo
- constructCacheCacheDir :: Text -> IO ([Char], GValue)
- getCacheCacheDir :: (MonadIO m, CacheK o) => o -> m Text
- data CacheCacheTypePropertyInfo
- constructCacheCacheType :: CacheType -> IO ([Char], GValue)
- getCacheCacheType :: (MonadIO m, CacheK o) => o -> m CacheType
Exported types
GObject Cache | |
type ParentTypes Cache | |
type AttributeList Cache | |
type SignalList Cache |
Methods
cacheClear
cacheClear :: (MonadIO m, CacheK a) => a -> m () Source
cacheDump
cacheFlush
cacheFlush :: (MonadIO m, CacheK a) => a -> m () Source
cacheGetMaxSize
cacheGetMaxSize :: (MonadIO m, CacheK a) => a -> m Word32 Source
cacheLoad
cacheNew
cacheSetMaxSize
cacheSetMaxSize :: (MonadIO m, CacheK a) => a -> Word32 -> m () Source
Properties
CacheDir
data CacheCacheDirPropertyInfo Source
AttrInfo CacheCacheDirPropertyInfo | |
type AttrLabel CacheCacheDirPropertyInfo = "Cache::cache-dir" | |
type AttrGetType CacheCacheDirPropertyInfo = Text | |
type AttrBaseTypeConstraint CacheCacheDirPropertyInfo = CacheK | |
type AttrSetTypeConstraint CacheCacheDirPropertyInfo = * ~ Text | |
type AttrAllowedOps CacheCacheDirPropertyInfo = (:) AttrOpTag AttrConstruct ((:) AttrOpTag AttrGet ([] AttrOpTag)) |
getCacheCacheDir :: (MonadIO m, CacheK o) => o -> m Text Source
CacheType
data CacheCacheTypePropertyInfo Source
AttrInfo CacheCacheTypePropertyInfo | |
type AttrLabel CacheCacheTypePropertyInfo = "Cache::cache-type" | |
type AttrGetType CacheCacheTypePropertyInfo = CacheType | |
type AttrBaseTypeConstraint CacheCacheTypePropertyInfo = CacheK | |
type AttrSetTypeConstraint CacheCacheTypePropertyInfo = * ~ CacheType | |
type AttrAllowedOps CacheCacheTypePropertyInfo = (:) AttrOpTag AttrConstruct ((:) AttrOpTag AttrGet ([] AttrOpTag)) |
getCacheCacheType :: (MonadIO m, CacheK o) => o -> m CacheType Source