Skip to content

Cache

Cache

A high-performance caching system. Used to store and reuse UI states, textures, or calculations.

Methods

Name Kwargs Description
clear None resets the entire cache to default values.
clear_selected blacklist=None, whitelist=None clears only specific cache types based on lists.
get / set type: CacheType, [value] basic methods to retrieve or store data.
get_or_set_val type, value returns cached value; if None, sets it to 'value' and returns it.
get_or_exec type, func returns cached value; if None, executes 'func', stores result and returns it.
copy None returns a shallow copy of the cache.

Getters

Name ReturnType Description
Any CacheType Any you can access cache members as attributes (e.g., cache.Texture).

Use case

...#Not provided

Created with GGen v1.1.0 for nevu_ui v0.7.5