Cache


Description:

[ CCode ( has_construct_function = false ) ]
[ Version ( since = "2.34" ) ]
public Cache (string? cache_dir, CacheType cache_type)

Creates a new Cache.

Parameters:

cache_dir

the directory to store the cached data, or null to use the default one. Note that since the cache isn't safe to access for multiple processes at once, and the default directory isn't namespaced by process, clients are strongly discouraged from passing null.

cache_type

the CacheType of the cache

Returns:

a new Cache