Skip to content

Commit 901323e

Browse files
committed
Add some docstrings to ResponseCache.
1 parent 6f25702 commit 901323e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

sunlight/cache.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,8 +148,12 @@ def memoizer(self, *args, **kwargs):
148148

149149

150150
class ResponseCache(BaseCache):
151+
'''Simple cache implementation with pickled strings as cache keys.
152+
'''
151153

152154
def get_key(self, method_self, *args, **kwargs):
155+
'''Create a cache key by: pickle.dumps((module, name, args, kwargs))
156+
'''
153157
name = self.__class__.__name__
154158
module = self.__class__.__module__
155159
key = pickle.dumps((module, name, args, kwargs))

0 commit comments

Comments
 (0)