mirror of
https://github.com/davidhalter/django-stubs.git
synced 2025-12-08 21:14:49 +08:00
21 lines
735 B
Python
21 lines
735 B
Python
from typing import Any, Dict, Optional, Union
|
|
|
|
from django.contrib.sessions.backends.base import SessionBase
|
|
|
|
|
|
class SessionStore(SessionBase):
|
|
accessed: bool
|
|
serializer: Type[django.core.signing.JSONSerializer]
|
|
storage_path: str = ...
|
|
file_prefix: str = ...
|
|
def __init__(self, session_key: Optional[str] = ...) -> None: ...
|
|
def load(self) -> Dict[str, Union[int, str]]: ...
|
|
modified: bool = ...
|
|
def create(self) -> None: ...
|
|
def save(self, must_create: bool = ...) -> None: ...
|
|
def exists(self, session_key: Optional[str]) -> bool: ...
|
|
def delete(self, session_key: Optional[str] = ...) -> None: ...
|
|
def clean(self) -> None: ...
|
|
@classmethod
|
|
def clear_expired(cls) -> None: ...
|