mirror of
https://github.com/davidhalter/django-stubs.git
synced 2025-12-10 22:11:54 +08:00
20 lines
603 B
Python
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: ... |