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.
2 parents 6d52e4c + 9d2135b commit c2ac282Copy full SHA for c2ac282
cachecontrol/caches/redis_cache.py
@@ -1,6 +1,7 @@
1
from __future__ import division
2
3
from datetime import datetime
4
+from cachecontrol.cache import BaseCache
5
6
7
def total_seconds(td):
@@ -13,7 +14,7 @@ def total_seconds(td):
13
14
return int((ms + secs * 10**6) / 10**6)
15
16
-class RedisCache(object):
17
+class RedisCache(BaseCache):
18
19
def __init__(self, conn):
20
self.conn = conn
@@ -38,4 +39,5 @@ def clear(self):
38
39
self.conn.delete(key)
40
41
def close(self):
- self.conn.disconnect()
42
+ """Redis uses connection pooling, no need to close the connection."""
43
+ pass
0 commit comments