Commit 9d2135b
Robert Kirberich
Don’t attempt to close the connection to redis
py-redis uses connection pooling, removing the need for handling connections explicitly.
There might still be special cases where closing a connection is needed, but the current behaviour breaks for standard use cases where the caching adapter gets closed (for example when using it in a context manager), so this seems like an easy improvement.1 parent 1c8a892 commit 9d2135b
1 file changed
+2
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | | - | |
| 42 | + | |
| 43 | + | |
0 commit comments