mirror of
https://github.com/davidhalter/django-stubs.git
synced 2025-12-22 03:41:28 +08:00
initial commit
This commit is contained in:
23
django/core/cache/__init__.pyi
vendored
Normal file
23
django/core/cache/__init__.pyi
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
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, Callable, Dict[str, float]]: ...
|
||||
def __setattr__(self, name: str, value: Callable) -> None: ...
|
||||
Reference in New Issue
Block a user