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 c8406a0 commit 4872bb9Copy full SHA for 4872bb9
cachecontrol/cache.py
@@ -6,18 +6,26 @@
6
The cache object API for implementing caches. The default is a thread
7
safe in-memory dictionary.
8
"""
9
+
10
+from abc import ABCMeta, abstractmethod
11
from threading import Lock
12
13
+from six import add_metaclass
14
15
16
+@add_metaclass(ABCMeta)
17
class BaseCache(object):
18
+ @abstractmethod
19
def get(self, key):
- raise NotImplementedError()
20
+ pass
21
22
23
def set(self, key, value):
24
25
26
27
def delete(self, key):
28
29
30
def close(self):
31
pass
0 commit comments