Cache

class Cache(val glibCachePointer: <Error class: unknown class><<Error class: unknown class>>) : ProxyInstance(source)

⚠️ Deprecated ⚠️

This is deprecated since version 2.32.

Use a #GHashTable instead

---

A GCache allows sharing of complex data structures, in order to save system resources.

GCache uses keys and values. A GCache key describes the properties of a particular resource. A GCache value is the actual resource.

GCache has been marked as deprecated, since this API is rarely used and not very actively maintained.

Skipped during bindings generation

  • parameter value_new_func: CacheNewFunc

Constructors

Link copied to clipboard
constructor(glibCachePointer: <Error class: unknown class><<Error class: unknown class>>)

Properties

Link copied to clipboard
val glibCachePointer: <Error class: unknown class><<Error class: unknown class>>
Link copied to clipboard
open override val handle: <Error class: unknown class>

Functions

Link copied to clipboard
open override fun addCleaner(cleaner: <Error class: unknown class>): Boolean

Registers a cleaner to be executed when this proxy object is garbage collected.

Link copied to clipboard
fun destroy()

This is deprecated since version 2.32.

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean

Compare two proxy instances for equality. This will compare both the type of the instances, and their memory addresses.

Link copied to clipboard
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
fun insert(key: <Error class: unknown class>? = null): <Error class: unknown class>?

This is deprecated since version 2.32.

Link copied to clipboard
fun keyForeach(func: HFunc)

This is deprecated since version 2.32.

Link copied to clipboard
fun remove(value: <Error class: unknown class>? = null)

This is deprecated since version 2.32.

Link copied to clipboard
open override fun removeCleaner(cleaner: <Error class: unknown class>): Boolean

Removes a previously registered cleaner from this proxy object.

Link copied to clipboard
fun valueForeach(func: HFunc)

This is deprecated since version 2.10.