Skip to content

Commit

Permalink
improve: Add missing 'aget_many' and 'aset_many' in BaseCache (#217)
Browse files Browse the repository at this point in the history
  • Loading branch information
mvaled authored Dec 22, 2023
1 parent a696d47 commit b86960f
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions django-stubs/core/cache/backends/base.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,9 @@ class BaseCache:
def get_many(
self, keys: Iterable[str], version: int | None = ...
) -> dict[str, int | str]: ...
async def aget_many(
self, keys: Iterable[str], version: int | None = ...
) -> dict[str, int | str]: ...
def get_or_set(
self,
key: str,
Expand All @@ -85,6 +88,12 @@ class BaseCache:
timeout: int | None = ...,
version: int | None = ...,
) -> list[Any]: ...
async def aset_many(
self,
data: dict[str, Any],
timeout: int | None = ...,
version: int | None = ...,
) -> list[Any]: ...
def delete_many(self, keys: Iterable[str], version: int | None = ...) -> None: ...
async def adelete_many(
self, keys: Iterable[str], version: int | None = ...
Expand Down

0 comments on commit b86960f

Please sign in to comment.