File tree Expand file tree Collapse file tree 2 files changed +6
-10
lines changed Expand file tree Collapse file tree 2 files changed +6
-10
lines changed Original file line number Diff line number Diff line change 1- import socket
2-
31from valkey import Valkey
4- from valkey .exceptions import ConnectionError , ResponseError , TimeoutError
52from valkey .typing import KeyT , EncodableT
63
74from django_valkey .async_cache .client import AsyncDefaultClient
8- from django_valkey .base_client import DEFAULT_TIMEOUT , HerdCommonMethods
5+ from django_valkey .base_client import (
6+ DEFAULT_TIMEOUT ,
7+ HerdCommonMethods ,
8+ _main_exceptions ,
9+ )
910from django_valkey .exceptions import ConnectionInterrupted
1011
11- _main_exceptions = (ConnectionError , ResponseError , TimeoutError , socket .timeout )
12-
1312
1413class AsyncHerdClient (HerdCommonMethods , AsyncDefaultClient ):
1514 async def set (
Original file line number Diff line number Diff line change 1- import socket
21from collections .abc import Iterable
32from typing import Any
43
54from valkey import Valkey
6- from valkey .exceptions import ConnectionError , ResponseError , TimeoutError
75from valkey .typing import KeyT , EncodableT
86
97from django_valkey .base_client import (
108 DEFAULT_TIMEOUT ,
119 Backend ,
1210 HerdCommonMethods ,
11+ _main_exceptions ,
1312)
1413from django_valkey .client .default import DefaultClient
1514from django_valkey .exceptions import ConnectionInterrupted
1615
17- _main_exceptions = (ConnectionError , ResponseError , TimeoutError , socket .timeout )
18-
1916
2017class HerdClient (HerdCommonMethods , DefaultClient ):
2118 def set (
You can’t perform that action at this time.
0 commit comments