summaryrefslogtreecommitdiff
path: root/requests_cache/backends/sqlite.py
diff options
context:
space:
mode:
authorRoman <reclosedev@gmail.com>2012-04-08 22:58:10 +0400
committerRoman <reclosedev@gmail.com>2012-04-08 22:58:10 +0400
commit8bf9f9c97a819dfde537d838ca65583f87b08e50 (patch)
tree784eae0c3eeca45bc75234de266ca1f06ef852fc /requests_cache/backends/sqlite.py
parentc835516ba73a02f17aeb7b549863510a2c914188 (diff)
downloadrequests-cache-8bf9f9c97a819dfde537d838ca65583f87b08e50.tar.gz
Some TODOs, docstrings
Diffstat (limited to 'requests_cache/backends/sqlite.py')
-rw-r--r--requests_cache/backends/sqlite.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/requests_cache/backends/sqlite.py b/requests_cache/backends/sqlite.py
index f6b2191..29088a2 100644
--- a/requests_cache/backends/sqlite.py
+++ b/requests_cache/backends/sqlite.py
@@ -13,15 +13,18 @@ from requests_cache.backends.dbdict import DbPickleDict
class DbCache(MemoryCache):
""" sqlite cache backend.
+ Reading is fast, saving is a bit slower. It can store big amount of data
+ with low memory usage.
+
It stores cache data to two files (for ``location = 'cache'``):
- ``cache_urls.sqlite``
- ``cache_responses.sqlite``
-
- Reading is fast, saving is bit slower. It can store big amount of data
- with low memory usage.
"""
def __init__(self, location='cache', *args, **kwargs):
+ """
+ :param location: database filename prefix (default: ``'cache'``)
+ """
super(DbCache, self).__init__(*args, **kwargs)
self.url_map = DbPickleDict('%s_urls' % location)
self.responses = DbPickleDict('%s_responses' % location)