Files
django-stubs/django/core/cache/__init__.pyi
Maxim Kurnikov 89bb6eac75 improved version
2018-07-29 20:06:41 +03:00

23 lines
565 B
Python

from collections import OrderedDict
from django.core.cache.backends.base import BaseCache
from typing import (
Callable,
Dict,
Union,
)
def _create_cache(backend: str, **kwargs) -> BaseCache: ...
def close_caches(**kwargs) -> None: ...
class CacheHandler:
def __getitem__(self, alias: str) -> BaseCache: ...
class DefaultCacheProxy:
def __contains__(self, key: str) -> bool: ...
def __getattr__(self, name: str) -> Union[OrderedDict, Dict[str, float], Callable]: ...
def __setattr__(self, name: str, value: Callable) -> None: ...