diff options
| author | Roman <reclosedev@gmail.com> | 2012-04-08 22:58:10 +0400 |
|---|---|---|
| committer | Roman <reclosedev@gmail.com> | 2012-04-08 22:58:10 +0400 |
| commit | 8bf9f9c97a819dfde537d838ca65583f87b08e50 (patch) | |
| tree | 784eae0c3eeca45bc75234de266ca1f06ef852fc /requests_cache/backends/sqlite.py | |
| parent | c835516ba73a02f17aeb7b549863510a2c914188 (diff) | |
| download | requests-cache-8bf9f9c97a819dfde537d838ca65583f87b08e50.tar.gz | |
Some TODOs, docstrings
Diffstat (limited to 'requests_cache/backends/sqlite.py')
| -rw-r--r-- | requests_cache/backends/sqlite.py | 9 |
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) |
