rberga06.utils.cache.FCache#
- class rberga06.utils.cache.FCache(_: _T | _U | Literal[_Sentinels.DEFAULT] = _Sentinels.DEFAULT)#
 Bases:
Cache[dict[_K,tuple[object,bool]],dict[_K,tuple[object,bool]]]Function cache.
Methods
__init__([_])clear()Clar obj's cache (if any).
default()The default value (empty cache).
func(f, /)Cache f's calls (and exceptions!).
get(obj, /, *[, strict])Return obj's cache (or raise ValueError(...) if strict, else return None).
has(obj, /)Check if obj has a cache of this type.
read(*[, strict])Read self's cache.
set(obj, /)Decorator: set self as obj's cache.
Attributes
is_empty- func(f: _F, /) _F#
 Cache f’s calls (and exceptions!).
- classmethod get(obj: object, /, *, strict: bool = True) Self | None#
 Return obj’s cache (or raise ValueError(…) if strict, else return None).
- set(obj: _X, /) _X#
 Decorator: set self as obj’s cache.