File tree Expand file tree Collapse file tree 2 files changed +7
-6
lines changed Expand file tree Collapse file tree 2 files changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -69,4 +69,4 @@ def _attempt_to_load_apikey():
69
69
_attempt_to_load_apikey ()
70
70
71
71
72
- cache = sunlight .cache .response_cache
72
+ response_cache = sunlight .cache .response_cache
Original file line number Diff line number Diff line change 1
1
'''
2
- The cache is disabled by default. Use it like so:
2
+ .. module:: cache
3
3
4
- import logging
5
- from sunlight import cache
4
+ The cache is disabled by default. Use it like so: ::
6
5
7
- cache.enable('mongo')
8
- cache.logger.setLevel(logging.DEBUG)
6
+ import logging
7
+ from sunlight import response_cache
8
+ response_cache.enable('mongo')
9
+ response_cache.logger.setLevel(logging.DEBUG)
9
10
10
11
Note: the implementation below doesn't bother with cache expiration.
11
12
Typical use case is caching API calls during an expensive build process.
You can’t perform that action at this time.
0 commit comments