summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Build pre-releases from 'pre-release' branch, and set version suffix in CI ↵pre-releaseJordan Cook2021-04-292-20/+11
| | | | config
* Merge pull request #254 from JWCook/refactor-delete-methodsJordan Cook2021-04-2911-108/+273
|\ | | | | Improve performance for remove_expired_responses(), mainly for SQLite backend
| * Add an example script to generate a large cache for testing purposesJordan Cook2021-04-292-0/+112
| |
| * Minor formatting changes for SQL queriesJordan Cook2021-04-291-20/+24
| |
| * Make sure all tests with SQLite dbs clean up after themselvesJordan Cook2021-04-294-53/+52
| |
| * Some more improvements for bulk deletes in SQLite backendJordan Cook2021-04-292-10/+33
| |
| * Improve performance a bit for remove_expired_responses()Jordan Cook2021-04-294-27/+54
|/
* Merge pull request #253 from JWCook/cache-infoJordan Cook2021-04-299-36/+193
|\ | | | | Add some more convenience methods for getting cache info
| * Show datetimes in local timezone for str(CachedResponse)Jordan Cook2021-04-291-3/+8
| |
| * Update user guide and changelogJordan Cook2021-04-292-13/+31
| |
| * Add response details to CachedResponse str() and repr()Jordan Cook2021-04-292-0/+77
| |
| * Add BaseCache.keys() and values() methodsJordan Cook2021-04-273-20/+78
| | | | | | | | | | * Update `BaseCache.urls` to return a generator instead of the whole list at once (which may use too much memory for particularly large caches) * Update `BaseCache.urls` to just skip invalid responses instead of deleting them
| * Bump black versionJordan Cook2021-04-262-2/+1
|/
* Merge pull request #247 from JWCook/raise_for_statusJordan Cook2021-04-235-7/+55
|\ | | | | Handle response error codes with old_data_on_error
| * Include this behavior in old_data_on_error instead, to avoid complicationsJordan Cook2021-04-235-34/+27
| |
| * Add raise_for_status optionJordan Cook2021-04-236-4/+59
|/
* Log any ImportErrors in top-level init filedevJordan Cook2021-04-221-4/+7
|
* Merge branch 'use-temp'Jordan Cook2021-04-225-9/+39
|\
| * Add use_temp option to SQLite backendJordan Cook2021-04-225-9/+39
|/ | | | Closes #243
* Merge pull request #245 from JWCook/integration-testsJordan Cook2021-04-2211-148/+166
|\ | | | | Run CachedSession integration tests for all backends.
| * Combine test_cache.py with BaseCacheTest to run these tests for all backendsJordan Cook2021-04-2211-148/+166
|/
* Merge pull request #242 from JWCook/integration-testsJordan Cook2021-04-2217-313/+308
|\ | | | | Refactor backend integration tests
| * Turn multi-threaded stress tests into test (sub)classesJordan Cook2021-04-228-50/+100
| | | | | | | | | | | | This is mainly to take advantage of fail-fast connection tests; otherwise, these tests may just hang if backend dependenices are installed but backend services are not set up. See issue #221 for details.
| * Turn remaining unittest.TestCase classes into pytest-style test classesJordan Cook2021-04-228-144/+82
| |
| * Reorganize backend integration tests and add some more thorough testsJordan Cook2021-04-228-149/+168
| |
| * Move storage class __str__ methods to base class, and just show keys instead ↵Jordan Cook2021-04-226-15/+3
| | | | | | | | of items
| * Store responses for filesystem backend in a 'responses' subdirectory, to ↵Jordan Cook2021-04-221-5/+7
| | | | | | | | avoid deleting redirects.sqlite with clear()
| * For SQLite and filesystem backends, resolve file paths in BaseStorage class ↵Jordan Cook2021-04-212-8/+6
|/ | | | rather than BaseCache class
* Merge pull request #238 from JWCook/filesystem-backendJordan Cook2021-04-2113-8/+139
|\ | | | | Add a filesystem backend
| * Update changelog, contributors, and versionJordan Cook2021-04-213-3/+6
| |
| * Add a filesystem backendJordan Cook2021-04-2110-5/+133
|/
* Use shared connection to create initial SQLite tableJordan Cook2021-04-211-1/+1
|
* Merge pull request #240 from jsemric/use-thread-local-connections-for-sqliteJordan Cook2021-04-212-41/+36
|\ | | | | Use thread local connections for sqlite
| * add sqlite no-op testsjsemric2021-04-211-0/+15
| |
| * 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
| |
* | Merge pull request #239 from JWCook/integration-testsJordan Cook2021-04-209-64/+90
|\ \ | |/ |/| Run multi-threaded tests for all backends
| * Run multi-threaded tests for all backends, and run with more threads & ↵Jordan Cook2021-04-206-42/+67
| | | | | | | | iterations for merges to master
| * Fix DynamoDbDict.__iter__ to return keys instead of values; update tests to ↵Jordan Cook2021-04-203-22/+23
|/ | | | test for this
* Merge pull request #237 from JWCook/backend-kwargsJordan Cook2021-04-1914-109/+169
|\ | | | | Allow passing any valid backend connection kwargs via BaseCache
| * Allow passing any valid backend connection kwargs via BaseCacheJordan Cook2021-04-1914-109/+169
|/ | | | | | | | * 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)
* Add option to manually cache response objectsJordan Cook2021-04-194-2/+12
| | | | Updates #98
* Replace deprecated pymongo Collection.count() with estimated_document_count()v0.6.3Jordan Cook2021-04-193-2/+3
|
* Update changelog and contributorsJordan Cook2021-04-193-8/+11
|
* Merge branch 'test-updates'Jordan Cook2021-04-196-25/+22
|\
| * Use pytest-order to order tests; remove ipdb recommendationJordan Cook2021-04-196-22/+9
| |
| * Run DynamoDB integration tests last, since the DynamoDB container takes ↵Jordan Cook2021-04-182-4/+10
| | | | | | | | longer to initialize
| * Add some more info about testingJordan Cook2021-04-182-8/+12
|/