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 339735c commit 88f7e54Copy full SHA for 88f7e54
redis/connection.py
@@ -1541,7 +1541,14 @@ def reset(self):
1541
1542
def make_connection(self):
1543
"Make a fresh connection."
1544
- connection = self.connection_class(**self.connection_kwargs)
+ if self._cache is not None and self._cache_conf is not None:
1545
+ connection = CacheProxyConnection(
1546
+ self.connection_class(**self.connection_kwargs),
1547
+ self._cache,
1548
+ self._cache_conf
1549
+ )
1550
+ else:
1551
+ connection = self.connection_class(**self.connection_kwargs)
1552
self._connections.append(connection)
1553
return connection
1554
0 commit comments