Files
django-stubs/django/core/cache/backends/dummy.pyi
Maxim Kurnikov a9f215bf64 initial commit
2018-07-29 18:12:23 +03:00

20 lines
603 B
Python

from typing import (
Any,
Dict,
Optional,
Union,
)
class DummyCache:
def __init__(self, host: str, *args, **kwargs) -> None: ...
def add(self, key: str, value: str, timeout: object = ..., version: None = ...) -> bool: ...
def get(self, key: str, default: Optional[str] = ..., version: Optional[int] = ...) -> Optional[str]: ...
def has_key(self, key: str, version: None = ...) -> bool: ...
def set(
self,
key: str,
value: Union[str, int, Dict[str, Any]],
timeout: object = ...,
version: Optional[str] = ...
) -> None: ...