Dazzle.TaskCache¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
Name |
Type |
Flags |
Short Description |
---|---|---|---|
w/co |
Key Copy Func |
||
w/co |
Key Destroy Func |
||
w/co |
Key Equal Func |
||
w/co |
Key Hash Func |
||
w/co |
Populate Callback |
||
w/co |
Populate Callback Data |
||
w/co |
Populate Callback Data Destroy |
||
w/co |
The time to live in milliseconds. |
||
w/co |
Value Copy Func |
||
w/co |
Value Destroy Func |
Signals¶
- Inherited:
Fields¶
- Inherited:
Class Details¶
- class Dazzle.TaskCache(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
- evict_all()¶
- get_async(key, force_update, cancellable, callback, *user_data)¶
- Parameters:
force_update (
bool
) –cancellable (
Gio.Cancellable
orNone
) –callback (
Gio.AsyncReadyCallback
orNone
) –
- get_finish(result)¶
- Parameters:
result (
Gio.AsyncResult
) –- Raises:
- Returns:
The result from the cache.
- Return type:
Finish a call to
Dazzle.TaskCache.get_async
().
- peek(key)¶
- Parameters:
- Returns:
A
GObject.Object
orNone
if the key was not found in the cache.- Return type:
Peeks to see key is contained in the cache and returns the matching
GObject.Object
if it does.The reference count of the resulting
GObject.Object
is not incremented. For that reason, it is important to remember that this function may only be called from the main thread.
Property Details¶
- Dazzle.TaskCache.props.key_copy_func¶
- Name:
key-copy-func
- Type:
- Default Value:
- Flags:
Key Copy Func
- Dazzle.TaskCache.props.key_destroy_func¶
- Name:
key-destroy-func
- Type:
- Default Value:
- Flags:
Key Destroy Func
- Dazzle.TaskCache.props.key_equal_func¶
- Name:
key-equal-func
- Type:
- Default Value:
- Flags:
Key Equal Func
- Dazzle.TaskCache.props.key_hash_func¶
- Name:
key-hash-func
- Type:
- Default Value:
- Flags:
Key Hash Func
- Dazzle.TaskCache.props.populate_callback¶
- Name:
populate-callback
- Type:
- Default Value:
- Flags:
Populate Callback
- Dazzle.TaskCache.props.populate_callback_data¶
- Name:
populate-callback-data
- Type:
- Default Value:
- Flags:
Populate Callback Data
- Dazzle.TaskCache.props.populate_callback_data_destroy¶
- Name:
populate-callback-data-destroy
- Type:
- Default Value:
- Flags:
Populate Callback Data Destroy
- Dazzle.TaskCache.props.time_to_live¶
- Name:
time-to-live
- Type:
- Default Value:
30000
- Flags:
This is the number of milliseconds before an item should be evicted from the cache.
A value of zero indicates no eviction.
- Dazzle.TaskCache.props.value_copy_func¶
- Name:
value-copy-func
- Type:
- Default Value:
- Flags:
Value Copy Func
- Dazzle.TaskCache.props.value_destroy_func¶
- Name:
value-destroy-func
- Type:
- Default Value:
- Flags:
Value Destroy Func