class GLib::Cache

Overview

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.

Defined in:

lib/gi-crystal/src/auto/g_lib-2.0/cache.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(pointer : Pointer(Void), transfer : GICrystal::Transfer) #

Instance Method Detail

def destroy : Nil #

DEPRECATED


def insert(key : Pointer(Void) | Nil) : Pointer(Void) | Nil #

DEPRECATED


def key_foreach(func : GLib::HFunc, user_data : Pointer(Void) | Nil) : Nil #

DEPRECATED


def remove(value : Pointer(Void) | Nil) : Nil #

DEPRECATED


def to_unsafe : Pointer(Void) #

def value_foreach(func : GLib::HFunc, user_data : Pointer(Void) | Nil) : Nil #

DEPRECATED