ahvn.cache.no_cache module

No-op cache implementation (always misses).

class ahvn.cache.no_cache.NoCache(exclude=None, *args, **kwargs)[源代码]

基类:BaseCache

An implementation of BaseCache that does not cache any data.

参数:

exclude (Iterable[str] | None)

__init__(exclude=None, *args, **kwargs)[源代码]

Initialization.

参数:
  • exclude (Optional[Iterable[str]]) -- Keys to exclude from inputs when creating cache entries.

  • *args -- Additional positional arguments.

  • **kwargs -- Additional keyword arguments.