euporie.core.cache

Updated version of the prompt_toolkit caches.

Classes

PtkSimpleCache

alias of SimpleCache

SimpleCache([maxsize])

Thread safe version of :py:`SimpleCache`.

class euporie.core.cache.SimpleCache(maxsize: int = 8)

Bases: SimpleCache[_T, _U]

Thread safe version of :py:`SimpleCache`.

clear() None

Clear cache.

get(key: _T, getter_func: Callable[[], _U]) _U

Access cache with thread safety.