INNER CODE UNIT · Python

all

comeuplater/fastapi_cache · fastapi_cache/registry.py:21

    def all(cls) -> Tuple[BaseCacheBackend]:
        return tuple(cls._caches.values())

    @classmethod
    def remove(cls, name: str) -> None:
        if name not in cls._caches:
            raise NameError('Cache with the same name not registered')

        del cls._caches[name]

    @classmethod
    def flush(cls) -> None:
        cls._caches = {}

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…