ahvn.cache.in_mem_cache module

In-memory cache backend.

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

基类:BaseCache

An implementation of BaseCache that stores data in memory as Python dictionaries.

参数:

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.

close()[源代码]

Closes the cache, if applicable.