Skip to content

Commit 1c8a892

Browse files
author
Robert Kirberich
committed
Make RedisCache inherit from BaseCache to define its interface
1 parent 8a8d0e1 commit 1c8a892

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cachecontrol/caches/redis_cache.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
from __future__ import division
22

33
from datetime import datetime
4+
from cachecontrol.cache import BaseCache
45

56

67
def total_seconds(td):
@@ -13,7 +14,7 @@ def total_seconds(td):
1314
return int((ms + secs * 10**6) / 10**6)
1415

1516

16-
class RedisCache(object):
17+
class RedisCache(BaseCache):
1718

1819
def __init__(self, conn):
1920
self.conn = conn

0 commit comments

Comments
 (0)