TaskCache

Constructors

this
this(DzlTaskCache* dzlTaskCache, bool ownedRef)

Sets our main struct and passes it to the parent class.

this
this(GHashFunc keyHashFunc, GEqualFunc keyEqualFunc, GBoxedCopyFunc keyCopyFunc, GBoxedFreeFunc keyDestroyFunc, GBoxedCopyFunc valueCopyFunc, GBoxedFreeFunc valueFreeFunc, long timeToLiveMsec, DzlTaskCacheCallback populateCallback, void* populateCallbackData, GDestroyNotify populateCallbackDataDestroy)

Members

Functions

evict
bool evict(void* key)
evictAll
void evictAll()
getAsync
void getAsync(void* key, bool forceUpdate, Cancellable cancellable, GAsyncReadyCallback callback, void* userData)
getFinish
void* getFinish(AsyncResultIF result)

Finish a call to dzl_task_cache_get_async().

getStruct
void* getStruct()

the main Gtk struct as a void*

getTaskCacheStruct
DzlTaskCache* getTaskCacheStruct(bool transferOwnership)

Get the main Gtk struct

getValues
PtrArray getValues()

Gets all the values in the cache.

peek
ObjectG peek(void* key)

Peeks to see @key is contained in the cache and returns the matching #GObject if it does.

setName
void setName(string name)

Static functions

getType
GType getType()

Variables

dzlTaskCache
DzlTaskCache* dzlTaskCache;

the main Gtk struct

Meta