Interface
GckObjectCache
Description [src]
interface Gck.ObjectCache : Gck.Object
An interface implemented by derived classes of GckObject
to indicate
which attributes they’d like an enumerator to retrieve.
These attributes are then cached on the object and can be retrieved through
the GckObjectCache:attributes
property.
Prerequisite
In order to implement ObjectCache, your type must inherit from
GckObject
.
Instance methods
gck_object_cache_fill
Adds the attributes to the set cached on this object. If an attribute is already present in the cache it will be overridden by this value.
gck_object_cache_get_attributes
Gets the attributes cached on this object.
gck_object_cache_set_attributes
Sets the attributes cached on this object.
gck_object_cache_update
Update the object cache with given attributes. If an attribute already exists in the cache, it will be updated, and if it doesn’t it will be added.
gck_object_cache_update_async
Update the object cache with given attributes. If an attribute already exists in the cache, it will be updated, and if it doesn’t it will be added.
gck_object_cache_update_finish
Complete an asynchronous operation to update the object cache with given attributes.
Properties
Gck.ObjectCache:attributes
The attributes cached on this object.
Interface structure
struct GckObjectCacheIface {
GTypeInterface interface;
const gulong* default_types;
gint n_default_types;
void (* fill) (
GckObjectCache* object,
GckAttributes* attrs
);
}
Interface members
interface |
|
Parent interface. |
|
default_types |
|
Attribute types that an enumerator should retrieve. |
|
n_default_types |
|
Number of attribute types to be retrieved. |
|
fill |
|
No description available. |
Virtual methods
Gck.ObjectCache.fill
Adds the attributes to the set cached on this object. If an attribute is already present in the cache it will be overridden by this value.