CacheKeys
Object Hierarchy:
Description:
[
CCode ( type_id =
"e_cache_keys_get_type ()" ) ]
[
Version ( since =
"3.48" ) ]
public class CacheKeys :
Object
Contains only private data that should be read and manipulated using the functions below.
Content:
Properties:
Creation methods:
Methods:
- public bool count_keys_sync (out int64 out_n_stored, Cancellable? cancellable = null) throws Error
Counts how many keys the this stores
and set it to the out_n_stored.
- public bool foreach_sync (CacheKeysForeachFunc func, Cancellable? cancellable = null) throws Error
Calls func for each stored key in the
this, providing information about its value and reference count.
- public unowned Cache get_cache ()
Gets an Cache, with
which the this had been created.
- public unowned string get_key_column_name ()
Gets a key column name, with which the this
had been created.
- public bool get_ref_count_sync (string key, out uint out_ref_count, Cancellable? cancellable = null) throws Error
Gets currently stored reference count for the key.
- public bool get_sync (string key, out string out_value, Cancellable? cancellable = null) throws Error
Gets a stored value with given key, which had been
previously put into the this with put_sync.
- public unowned string get_table_name ()
Gets a table name, with which the this
had been created.
- public unowned string get_value_column_name ()
Get a value column name, with which the
this had been created.
- public bool init_table_sync (Cancellable? cancellable = null) throws Error
Initializes table in the corresponding
Cache.
- public bool put_sync (string key, string value, uint inc_ref_counts, Cancellable? cancellable = null) throws Error
Puts the key and value into the
this.
- public bool remove_all_sync (Cancellable? cancellable = null) throws Error
Removes all stored keys from the this
.
- public bool remove_sync (string key, uint dec_ref_counts, Cancellable? cancellable = null) throws Error
Dereferences use count of the key by dec_ref_counts
and removes it from the cache when the reference count reaches zero.
Signals:
Inherited Members:
All known members inherited from class GLib.Object