rberga06.utils.cache.FCacheArgOnly#
- class rberga06.utils.cache.FCacheArgOnly(_: _T | _U | Literal[_Sentinels.DEFAULT] = _Sentinels.DEFAULT)#
Bases:
FCache[tuple[object, …]]A function cache that ignores **kwargs.
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.