mirror of
https://github.com/davidhalter/django-stubs.git
synced 2026-08-17 21:28:03 +08:00
initial commit
This commit is contained in:
+38
@@ -0,0 +1,38 @@
|
||||
from typing import (
|
||||
Any,
|
||||
Dict,
|
||||
Optional,
|
||||
Union,
|
||||
)
|
||||
|
||||
|
||||
class LocMemCache:
|
||||
def __init__(self, name: str, params: Dict[str, Any]) -> None: ...
|
||||
def _delete(self, key: str) -> None: ...
|
||||
def _has_expired(self, key: str) -> bool: ...
|
||||
def _set(self, key: str, value: bytes, timeout: object = ...) -> None: ...
|
||||
def add(
|
||||
self,
|
||||
key: str,
|
||||
value: Union[int, Dict[str, int], str, Dict[str, str]],
|
||||
timeout: object = ...,
|
||||
version: Optional[int] = ...
|
||||
): ...
|
||||
def clear(self) -> None: ...
|
||||
def delete(self, key: str, version: Optional[int] = ...) -> None: ...
|
||||
def get(
|
||||
self,
|
||||
key: Union[str, int],
|
||||
default: Optional[Union[str, int]] = ...,
|
||||
version: Optional[int] = ...
|
||||
) -> Any: ...
|
||||
def has_key(self, key: str, version: Optional[int] = ...): ...
|
||||
def incr(self, key: Union[str, int], delta: int = ..., version: Optional[int] = ...) -> int: ...
|
||||
def set(
|
||||
self,
|
||||
key: Union[str, int],
|
||||
value: Any,
|
||||
timeout: object = ...,
|
||||
version: Optional[int] = ...
|
||||
) -> None: ...
|
||||
def touch(self, key: str, timeout: object = ..., version: None = ...): ...
|
||||
Reference in New Issue
Block a user