redis 6.3.0__py3-none-any.whl → 7.0.0b1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- redis/__init__.py +1 -2
- redis/_parsers/base.py +173 -8
- redis/_parsers/hiredis.py +16 -10
- redis/_parsers/resp3.py +11 -5
- redis/asyncio/client.py +45 -2
- redis/asyncio/cluster.py +46 -12
- redis/cache.py +1 -0
- redis/client.py +70 -19
- redis/cluster.py +3 -2
- redis/commands/core.py +285 -285
- redis/commands/helpers.py +0 -20
- redis/commands/json/_util.py +4 -2
- redis/commands/search/aggregation.py +3 -3
- redis/commands/search/commands.py +3 -3
- redis/commands/search/query.py +12 -12
- redis/commands/vectorset/__init__.py +1 -1
- redis/commands/vectorset/commands.py +50 -25
- redis/commands/vectorset/utils.py +40 -4
- redis/connection.py +830 -67
- redis/event.py +4 -4
- redis/maintenance_events.py +785 -0
- {redis-6.3.0.dist-info → redis-7.0.0b1.dist-info}/METADATA +1 -1
- {redis-6.3.0.dist-info → redis-7.0.0b1.dist-info}/RECORD +25 -24
- {redis-6.3.0.dist-info → redis-7.0.0b1.dist-info}/WHEEL +0 -0
- {redis-6.3.0.dist-info → redis-7.0.0b1.dist-info}/licenses/LICENSE +0 -0
redis/event.py
CHANGED
|
@@ -152,7 +152,7 @@ class AfterSingleConnectionInstantiationEvent:
|
|
|
152
152
|
self,
|
|
153
153
|
connection,
|
|
154
154
|
client_type: ClientType,
|
|
155
|
-
connection_lock: Union[threading.
|
|
155
|
+
connection_lock: Union[threading.RLock, asyncio.Lock],
|
|
156
156
|
):
|
|
157
157
|
self._connection = connection
|
|
158
158
|
self._client_type = client_type
|
|
@@ -167,7 +167,7 @@ class AfterSingleConnectionInstantiationEvent:
|
|
|
167
167
|
return self._client_type
|
|
168
168
|
|
|
169
169
|
@property
|
|
170
|
-
def connection_lock(self) -> Union[threading.
|
|
170
|
+
def connection_lock(self) -> Union[threading.RLock, asyncio.Lock]:
|
|
171
171
|
return self._connection_lock
|
|
172
172
|
|
|
173
173
|
|
|
@@ -177,7 +177,7 @@ class AfterPubSubConnectionInstantiationEvent:
|
|
|
177
177
|
pubsub_connection,
|
|
178
178
|
connection_pool,
|
|
179
179
|
client_type: ClientType,
|
|
180
|
-
connection_lock: Union[threading.
|
|
180
|
+
connection_lock: Union[threading.RLock, asyncio.Lock],
|
|
181
181
|
):
|
|
182
182
|
self._pubsub_connection = pubsub_connection
|
|
183
183
|
self._connection_pool = connection_pool
|
|
@@ -197,7 +197,7 @@ class AfterPubSubConnectionInstantiationEvent:
|
|
|
197
197
|
return self._client_type
|
|
198
198
|
|
|
199
199
|
@property
|
|
200
|
-
def connection_lock(self) -> Union[threading.
|
|
200
|
+
def connection_lock(self) -> Union[threading.RLock, asyncio.Lock]:
|
|
201
201
|
return self._connection_lock
|
|
202
202
|
|
|
203
203
|
|