We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9d5751d commit 1423037Copy full SHA for 1423037
redis/connection.py
@@ -870,9 +870,11 @@ def read_response(
870
and self._cache.get(self._current_command_cache_key).status
871
!= CacheEntryStatus.IN_PROGRESS
872
):
873
- return copy.deepcopy(
+ res = copy.deepcopy(
874
self._cache.get(self._current_command_cache_key).cache_value
875
)
876
+ self._current_command_cache_key = None
877
+ return res
878
879
response = self._conn.read_response(
880
disable_decoding=disable_decoding,
@@ -898,6 +900,8 @@ def read_response(
898
900
cache_entry.cache_value = response
899
901
self._cache.set(cache_entry)
902
903
904
+
905
return response
906
907
def pack_command(self, *args):
0 commit comments