Skip to content

Commit 6f25702

Browse files
committed
Rename debugcache.py, debug_cache->response_cache.
1 parent 21cb728 commit 6f25702

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

sunlight/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
import warnings
3131
import sunlight.config
3232
import sunlight.service
33-
import sunlight.debugcache
33+
import sunlight.cache
3434

3535

3636
def available_services():
@@ -69,4 +69,4 @@ def _attempt_to_load_apikey():
6969
_attempt_to_load_apikey()
7070

7171

72-
cache = sunlight.debugcache.debug_cache
72+
cache = sunlight.cache.response_cache

sunlight/debugcache.py renamed to sunlight/cache.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ def get_key(self, method_self, *args, **kwargs):
156156
return key
157157

158158

159-
debug_cache = ResponseCache()
159+
response_cache = ResponseCache()
160160

161161

162162
def get_mongo():

sunlight/service.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
import sunlight.config
1414
import sunlight.errors
15-
from sunlight.debugcache import debug_cache
15+
from sunlight.cache import response_cache
1616

1717

1818
if sys.version_info[0] >= 3:
@@ -47,7 +47,7 @@ class Service:
4747

4848
is_pageable = False
4949

50-
@debug_cache
50+
@response_cache
5151
def get(self, top_level_object, **kwargs):
5252
"""
5353
Get some data from the network - this is where we actually fetch

0 commit comments

Comments
 (0)