summaryrefslogtreecommitdiff
path: root/requests_cache/backends/sqlite.py
Commit message (Collapse)AuthorAgeFilesLines
* Fix typosJordan Cook2023-03-011-1/+1
|
* Share SQLite connection objects among threads and use lock for write ↵Jordan Cook2023-03-011-20/+26
| | | | operations instead of using thread-local connections
* Set default serializers for each backend using param defaults instead of ↵Jordan Cook2023-01-131-8/+16
| | | | 'default_serializer' class attributes
* Make CachedResponse.cache_key available from all cache access methodsJordan Cook2022-12-301-7/+2
|
* Update type hints to appease Pylance and stricter mypy settingsJordan Cook2022-12-131-5/+9
|
* Make use of index with SQLiteCache.filter(expired=False)Jordan Cook2022-10-281-12/+17
|
* Add SQLite method to count unexpired responses in SQLJordan Cook2022-10-281-6/+28
|
* Omit invalid responses and set response.cache_key in SQLiteCache.sorted()Jordan Cook2022-10-281-2/+10
|
* Set uri=True when using an in-memory SQLite dbJordan Cook2022-10-281-1/+3
|
* Add some missing type hintsJordan Cook2022-10-261-2/+2
|
* Add method to recreate cache keysJordan Cook2022-08-231-0/+5
|
* Clean up SQLiteCache convenience methods a bitJordan Cook2022-06-111-14/+31
|
* Consolidate BaseCache convenience methods into contains(), filter(), and ↵Jordan Cook2022-06-111-19/+19
| | | | delete()
* Split up remove_expired_reponses() into remove() and reset_expiration() ↵Jordan Cook2022-06-111-4/+4
| | | | methods, with more granular arguments
* use https for links谭九鼎2022-05-091-1/+1
|
* Add 'older_than' argument to remove_expired_responses()Jordan Cook2022-05-031-3/+5
|
* Add a BaseStorage.default_serializer attribute, to be more explicit about ↵Jordan Cook2022-04-221-5/+3
| | | | which backends use something other than pickle by default
* Add SQLiteDict.size() method to estimate the database sizeJordan Cook2022-04-221-1/+17
|
* For SQLite expires column, use time.time() instead of datetime.timestamp()Jordan Cook2022-04-221-11/+9
|
* Merge *PickleDict storage classes into parent classesJordan Cook2022-04-221-34/+10
|
* Add misc missing test coverageJordan Cook2022-04-201-4/+2
|
* Ensure BaseCache.cache_name gets set if a backend class is initialized ↵Jordan Cook2022-04-191-1/+1
| | | | directly (mainly for debug/logging purposes)
* Move all cache policy-related modules to separate 'policy' subpackageJordan Cook2022-04-171-1/+1
|
* Move backend docs to user guide, separate from API reference docsJordan Cook2022-04-171-0/+6
|
* Move detailed backend docs from rst docstings to md filesJordan Cook2022-04-161-87/+0
|
* Add some more notes about SQLite and Redis backendsJordan Cook2022-04-111-0/+18
|
* Add SQLiteDict.sorted() method with sorting and other query optionsJordan Cook2022-04-101-0/+55
|
* Use Unix time integer instead of datetime string, and use same time source ↵Jordan Cook2022-04-101-3/+5
| | | | on both write (setitem) and read (clear_expired)
* LEFT JOIN option is slightly fasterJordan Cook2022-04-101-10/+1
|
* WIP: Add faster implementation of removing invalid redirects in SQLJordan Cook2022-04-101-0/+22
|
* Add indexed datetime column to SQLite backend for faster evictionJordan Cook2022-04-101-13/+41
|
* Update tests, changelog, and contributorsJordan Cook2022-04-061-3/+3
|
* wal modeDaniel Holth2022-04-061-0/+5
|
* Add 'Use Cases' section to each backend's docsJordan Cook2022-03-171-0/+2
|
* Swap out appdirs for platformdirsJordan Cook2022-03-141-1/+1
| | | | | | | | | | | | | | | | | | | | | | * platformdirs is a more actively maintained fork of appdirs. * Also relax requirements a bit for attrs and urllib (minimum instead of caret constraint) Dependabot update: Bump responses from 0.16.0 to 0.19.0 Bumps [responses](https://github.com/getsentry/responses) from 0.16.0 to 0.19.0. - [Release notes](https://github.com/getsentry/responses/releases) - [Changelog](https://github.com/getsentry/responses/blob/master/CHANGES) - [Commits](https://github.com/getsentry/responses/compare/0.16.0...0.19.0) --- updated-dependencies: - dependency-name: responses dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com>
* Add lock around remove_expired_responses() for SQLite, Filesystem, and ↵Jordan Cook2022-02-221-0/+4
| | | | GridFS backends
* Fix race condition with dropping and recreating SQLite tables in multiple ↵Jordan Cook2022-02-221-4/+5
| | | | threads
* Fix cache path expansionAndrew Stone2022-02-171-1/+1
|
* Fix a new type checking issueJordan Cook2021-10-271-1/+1
|
* Move misc minor utils to a separate moduleJordan Cook2021-10-271-9/+3
|
* Add better error message if parent path exists but isn't a directoryJordan Cook2021-10-101-6/+11
|
* Add some alises so fully qualified imports of DbDict, etc. don't breakJordan Cook2021-09-141-0/+6
|
* Fix SQLiteCache.db_path; supposed to be a property, not a methodJordan Cook2021-09-061-0/+1
|
* Use pathlib.Path objects for all file paths in Filesystem and SQLite backendsJordan Cook2021-08-291-21/+18
|
* Reorganize user docs: break down User Guide and Advanced Usage sections into ↵Jordan Cook2021-08-261-1/+1
| | | | smaller pages
* Move 'Cache Files' docs that apply to both SQLite and Filesystem backends to ↵Jordan Cook2021-08-251-65/+6
| | | | main User Guide page
* Add appdirs as a dependency, and add 'use_cache_dir' option to SQLite and ↵Jordan Cook2021-08-211-17/+37
| | | | Filesystem backends
* Add CLI arg to benchmark script to select a backendJordan Cook2021-08-201-1/+1
|
* Add support for SQLite in-memory databasesJordan Cook2021-08-201-20/+41
|
* Add FileCache.paths() wrapper method, and return a list instead of generatorJordan Cook2021-08-201-1/+3
|