Caching helper#

Helper for caching related tasks.

Functions#

hybrid_cache([joblib_memory, lru_cache_maxsize])

Cache a function using joblib memory and a lru cache at the same time.

global_disk_cache([memory, cache_only, ...])

Wrap an algorithm/pipeline class to enable joblib based disk cashing for its primary action method.

global_ram_cache([max_n, cache_only, ...])

Wrap an algorithm/pipeline class to enable LRU based RAM cashing for the specified action method.

remove_disk_cache(algorithm_object)

Remove the disk cache from an algorithm class.

remove_ram_cache(algorithm_object)

Remove the RAM cache from an algorithm class.

remove_any_cache(algorithm_object)

Remove any cache from an algorithm class.

get_ram_cache_obj(algorithm_object[, ...])

Get the RAM cache object from an algorithm class.