Explicitly close the redis connection and connection_pool. It is necessary in testing scenarios to close between asyncio test cases to avoid having lingering redis connections associated with event loops that will be closed (each test case uses its own event loop).
(self)
| 1755 | await self.redis.delete(lock_key) |
| 1756 | |
| 1757 | async def close(self): |
| 1758 | """Explicitly close the redis connection and connection_pool. |
| 1759 | |
| 1760 | It is necessary in testing scenarios to close between asyncio test cases |
| 1761 | to avoid having lingering redis connections associated with event loops |
| 1762 | that will be closed (each test case uses its own event loop). |
| 1763 | |
| 1764 | Note: Connections will be automatically reopened when needed. |
| 1765 | """ |
| 1766 | await self.redis.close(close_connection_pool=True) |
| 1767 | |
| 1768 | |
| 1769 | class ClientStorageBase: |
no outgoing calls