summaryrefslogtreecommitdiff
path: root/requests_cache/backends/sqlite.py
Commit message (Collapse)AuthorAgeFilesLines
* Add use_temp option to SQLite backendJordan Cook2021-04-221-8/+18
| | | | Closes #243
* Move storage class __str__ methods to base class, and just show keys instead ↵Jordan Cook2021-04-221-3/+0
| | | | of items
* For SQLite and filesystem backends, resolve file paths in BaseStorage class ↵Jordan Cook2021-04-211-2/+1
| | | | rather than BaseCache class
* Add a filesystem backendJordan Cook2021-04-211-1/+1
|
* Use shared connection to create initial SQLite tableJordan Cook2021-04-211-1/+1
|
* remove locking of sqlite connectionjsemric2021-04-211-18/+10
|
* do not lock connection on readjsemric2021-04-211-4/+10
|
* make bulk commit use thread-local connectionjsemric2021-04-211-26/+7
|
* use thread local sqlite connectionsjsemric2021-04-201-16/+17
|
* Allow passing any valid backend connection kwargs via BaseCacheJordan Cook2021-04-191-9/+20
| | | | | | | | * Pass `**kwargs` to backend storage classes, split out any that are valid for the backend-specific connection function/class, and pass them to the connection * Add intersphinx links to docs for dependencies * Update and format some more backend class docstrings * Remove 'Unrecognized keyword arguments' warning from `BaseStorage` * Turn `warnings.warn` about using secret keys into a `logging.warning` (due to complaints about too many messages)
* Make parent dirs for new SQLite databasesJordan Cook2021-04-111-8/+18
|
* Improvements to Sphinx documentation:Jordan Cook2021-04-031-1/+1
| | | | | | | | | | | | | | * Use sphinx-apidoc to auto-generate sources for backend modules * Still manually adding other modules for more control over formatting * Add a couple more contributors I missed * Include contributors on readthedocs * Add 'all' Makefile target and clean auto-generated docs * Remove unused build targets in Makefile * Update interpshinx links that have moved * Fix some interpshinx links * Fix some `:ref:` links using auto-generated labels (and some manually added labels where convenient) * Fix some docstring formatting * Fix remaining build warnings
* Improve backend initialization:Jordan Cook2021-04-021-11/+14
| | | | | | | * Also allow passing a backend class (in addition to backend name and instance) * Detect duplicate params: Backends have different keyword args equivalent to the `cache_name` positional arg, for example `db_name`. If one of these is passed as a keyword arg, it results in a `TypeError` due to duplicate args (See #94). * For backends without dependencies installed, use a placeholder class to delay and re-raise the original `ImportError` * Add type annotations
* For SQLite backend, run VACUUM after remove_expired_responses()Jordan Cook2021-03-301-0/+10
|
* Add logging to main cache operationsJordan Cook2021-03-301-8/+10
|
* Show warning when using pickle without itsdangerousJordan Cook2021-03-281-0/+1
|
* Expose timeout parameter for SQLite backendJordan Cook2021-03-241-15/+15
|
* Pass along optional kwargs to all storage classes, and make default table ↵Jordan Cook2021-03-241-13/+14
| | | | names consistent across backends (`'http_cache'`)
* Combine storage classes from backends.storage.* with their respective ↵Jordan Cook2021-03-241-9/+144
| | | | backends in backends.*
* Rename BaseCache.keys_map property and its associated table to 'redirects'Jordan Cook2021-03-241-1/+1
|
* Refactor CachedSession to be usable as a mixin classJordan Cook2021-03-041-1/+1
|
* Remove all python 2 compatibilityJordan Cook2021-02-261-1/+0
|
* Apply code formatting with black + isortJordan Cook2021-02-261-3/+3
|
* Fix TypeError with DbPickleDict initialization; closes #136Jordan Cook2021-02-251-1/+1
|
* #6 Add optional support for including headers to cache key in GET requestsRoman Haritonov2015-01-171-1/+1
|
* pep8Roman Haritonov2015-01-171-1/+0
|
* move storage implementations to packageRoman Haritonov2013-01-121-1/+1
|
* url -> keyRoman Haritonov2013-01-121-1/+1
|
* Use relative importsRoman Haritonov2012-05-111-2/+2
|
* Extension of sqlite database filename is now configurableRoman Haritonov2012-05-061-3/+5
|
* Remove reusable_dict parameter because of new connection logicRoman Haritonov2012-05-041-1/+1
|
* clarify docs about backend optionsRoman Haritonov2012-05-021-1/+1
|
* add fast_save option to DbCache backendRoman Haritonov2012-05-021-2/+4
|
* connection option for MongoCacheRoman2012-04-111-2/+2
|
* refactor: rename MemoryCache to BaseCacheRoman2012-04-111-2/+2
|
* sqlite cache now stored in one database into different tablesRoman2012-04-091-8/+4
|
* Some TODOs, docstringsRoman2012-04-081-3/+6
|
* More docstrings. Added LICENSERoman2012-04-081-2/+14
|
* MemoryCache now reduces and Response. More docstringsRoman2012-04-081-14/+3
|
* initial commitRoman2012-04-081-0/+26