gi-soup-2.4.11: Libsoup bindings

CopyrightWill Thompson, Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria (garetxe@gmail.com)
Safe HaskellNone
LanguageHaskell2010

GI.Soup.Objects.Cache

Contents

Description

 

Synopsis

Exported types

newtype Cache Source #

Constructors

Cache (ManagedPtr Cache) 

Instances

GObject Cache Source # 

Methods

gobjectType :: Cache -> IO GType #

IsObject Cache Source # 
IsSessionFeature Cache Source # 
IsCache Cache Source # 
((~) * info (ResolveCacheMethod t Cache), MethodInfo * info Cache p) => IsLabel t (Cache -> p) Source # 

Methods

fromLabel :: Proxy# Symbol t -> Cache -> p #

((~) * info (ResolveCacheMethod t Cache), MethodInfo * info Cache p) => IsLabelProxy t (Cache -> p) Source # 

Methods

fromLabelProxy :: Proxy Symbol t -> Cache -> p #

HasAttributeList * Cache Source # 
type AttributeList Cache Source # 
type SignalList Cache Source # 

Methods

clear

data CacheClearMethodInfo Source #

Instances

((~) * signature (m ()), MonadIO m, IsCache a) => MethodInfo * CacheClearMethodInfo a signature Source # 

Methods

overloadedMethod :: MethodProxy CacheClearMethodInfo a -> signature -> s #

cacheClear Source #

Arguments

:: (HasCallStack, MonadIO m, IsCache a) 
=> a

cache: a Cache

-> m () 

Will remove all entries in the cache plus all the cache files.

Since: 2.34

dump

data CacheDumpMethodInfo Source #

Instances

((~) * signature (m ()), MonadIO m, IsCache a) => MethodInfo * CacheDumpMethodInfo a signature Source # 

Methods

overloadedMethod :: MethodProxy CacheDumpMethodInfo a -> signature -> s #

cacheDump Source #

Arguments

:: (HasCallStack, MonadIO m, IsCache a) 
=> a

cache: a Cache

-> m () 

Synchronously writes the cache index out to disk. Contrast with cacheFlush, which writes pending cache <emphasis>entries</emphasis> to disk.

You must call this before exiting if you want your cache data to persist between sessions.

@since 2.34.

flush

data CacheFlushMethodInfo Source #

Instances

((~) * signature (m ()), MonadIO m, IsCache a) => MethodInfo * CacheFlushMethodInfo a signature Source # 

Methods

overloadedMethod :: MethodProxy CacheFlushMethodInfo a -> signature -> s #

cacheFlush Source #

Arguments

:: (HasCallStack, MonadIO m, IsCache a) 
=> a

cache: a Cache

-> m () 

This function will force all pending writes in the cache to be committed to disk. For doing so it will iterate the MainContext associated with cache's session as long as needed.

Contrast with cacheDump, which writes out the cache index file.

Since: 2.34

getMaxSize

data CacheGetMaxSizeMethodInfo Source #

Instances

((~) * signature (m Word32), MonadIO m, IsCache a) => MethodInfo * CacheGetMaxSizeMethodInfo a signature Source # 

cacheGetMaxSize Source #

Arguments

:: (HasCallStack, MonadIO m, IsCache a) 
=> a

cache: a Cache

-> m Word32

Returns: the maximum size of the cache, in bytes.

Gets the maximum size of the cache.

Since: 2.34

load

data CacheLoadMethodInfo Source #

Instances

((~) * signature (m ()), MonadIO m, IsCache a) => MethodInfo * CacheLoadMethodInfo a signature Source # 

Methods

overloadedMethod :: MethodProxy CacheLoadMethodInfo a -> signature -> s #

cacheLoad Source #

Arguments

:: (HasCallStack, MonadIO m, IsCache a) 
=> a

cache: a Cache

-> m () 

Loads the contents of cache's index into memory.

Since: 2.34

new

cacheNew Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> Text

cacheDir: the directory to store the cached data, or Nothing to use the default one

-> CacheType

cacheType: the CacheType of the cache

-> m Cache

Returns: a new Cache

Creates a new Cache.

Since: 2.34

setMaxSize

data CacheSetMaxSizeMethodInfo Source #

Instances

((~) * signature (Word32 -> m ()), MonadIO m, IsCache a) => MethodInfo * CacheSetMaxSizeMethodInfo a signature Source # 

cacheSetMaxSize Source #

Arguments

:: (HasCallStack, MonadIO m, IsCache a) 
=> a

cache: a Cache

-> Word32

maxSize: the maximum size of the cache, in bytes

-> m () 

Sets the maximum size of the cache.

Since: 2.34

Properties

cacheDir

data CacheCacheDirPropertyInfo Source #

Instances

AttrInfo CacheCacheDirPropertyInfo Source # 
type AttrOrigin CacheCacheDirPropertyInfo Source # 
type AttrLabel CacheCacheDirPropertyInfo Source # 
type AttrGetType CacheCacheDirPropertyInfo Source # 
type AttrBaseTypeConstraint CacheCacheDirPropertyInfo Source # 
type AttrSetTypeConstraint CacheCacheDirPropertyInfo Source # 
type AttrAllowedOps CacheCacheDirPropertyInfo Source # 

cacheType

data CacheCacheTypePropertyInfo Source #

Instances

AttrInfo CacheCacheTypePropertyInfo Source # 
type AttrOrigin CacheCacheTypePropertyInfo Source # 
type AttrLabel CacheCacheTypePropertyInfo Source # 
type AttrGetType CacheCacheTypePropertyInfo Source # 
type AttrBaseTypeConstraint CacheCacheTypePropertyInfo Source # 
type AttrSetTypeConstraint CacheCacheTypePropertyInfo Source # 
type AttrAllowedOps CacheCacheTypePropertyInfo Source #