Skip to content

Commit bdd092a

Browse files
committed
Added some docs
1 parent f0f37f7 commit bdd092a

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

sunlight/debugcache.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
'''
2+
The cache is disabled by default. Use it like so:
3+
4+
import logging
5+
from sunlight import cache, openstates
6+
7+
cache.enable('mongo')
8+
cache.logger.setLevel(logging.DEBUG)
9+
'''
110
import pickle
211
import logging
312
import functools

0 commit comments

Comments
 (0)