| Commit message (Collapse) | Author | Age | Files | Lines | |
|---|---|---|---|---|---|
| * | Minor formatting changes for SQL queries | Jordan Cook | 2021-04-29 | 1 | -20/+24 |
| | | |||||
| * | Some more improvements for bulk deletes in SQLite backend | Jordan Cook | 2021-04-29 | 1 | -10/+32 |
| | | |||||
| * | Improve performance a bit for remove_expired_responses() | Jordan Cook | 2021-04-29 | 1 | -22/+31 |
| | | |||||
| * | Add BaseCache.keys() and values() methods | Jordan Cook | 2021-04-27 | 2 | -18/+45 |
| | | | | | | * 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 version | Jordan Cook | 2021-04-26 | 1 | -1/+0 |
| | | |||||
| * | Add use_temp option to SQLite backend | Jordan Cook | 2021-04-22 | 2 | -8/+21 |
| | | | | | Closes #243 | ||||
| * | Move storage class __str__ methods to base class, and just show keys instead ↵ | Jordan Cook | 2021-04-22 | 6 | -15/+3 |
| | | | | | of items | ||||
| * | Store responses for filesystem backend in a 'responses' subdirectory, to ↵ | Jordan Cook | 2021-04-22 | 1 | -5/+7 |
| | | | | | avoid deleting redirects.sqlite with clear() | ||||
| * | For SQLite and filesystem backends, resolve file paths in BaseStorage class ↵ | Jordan Cook | 2021-04-21 | 2 | -8/+6 |
| | | | | | rather than BaseCache class | ||||
| * | Add a filesystem backend | Jordan Cook | 2021-04-21 | 3 | -1/+93 |
| | | |||||
| * | Use shared connection to create initial SQLite table | Jordan Cook | 2021-04-21 | 1 | -1/+1 |
| | | |||||
| * | Merge pull request #240 from jsemric/use-thread-local-connections-for-sqlite | Jordan Cook | 2021-04-21 | 1 | -41/+21 |
| |\ | | | | | Use thread local connections for sqlite | ||||
| | * | remove locking of sqlite connection | jsemric | 2021-04-21 | 1 | -18/+10 |
| | | | |||||
| | * | do not lock connection on read | jsemric | 2021-04-21 | 1 | -4/+10 |
| | | | |||||
| | * | make bulk commit use thread-local connection | jsemric | 2021-04-21 | 1 | -26/+7 |
| | | | |||||
| | * | use thread local sqlite connections | jsemric | 2021-04-20 | 1 | -16/+17 |
| | | | |||||
| * | | Fix DynamoDbDict.__iter__ to return keys instead of values; update tests to ↵ | Jordan Cook | 2021-04-20 | 1 | -1/+1 |
| |/ | | | | test for this | ||||
| * | Allow passing any valid backend connection kwargs via BaseCache | Jordan Cook | 2021-04-19 | 7 | -100/+106 |
| | | | | | | | | | * 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 objects | Jordan Cook | 2021-04-19 | 1 | -1/+2 |
| | | | | | Updates #98 | ||||
| * | Replace deprecated pymongo Collection.count() with estimated_document_count()v0.6.3 | Jordan Cook | 2021-04-19 | 2 | -2/+2 |
| | | |||||
| * | Don't show warnings for 'include_get_headers' and 'ignored_parameters' ↵ | Jordan Cook | 2021-04-18 | 1 | -7/+16 |
| | | | | | | | | kwargs in BaseStorage Also don't name them as private members, since they can safely by changed after initialization (e.g., `session.cache.include_get_headers = True`) | ||||
| * | Update GridFSPickleDict.__delitem__ to raise a KeyError for missing items | Jordan Cook | 2021-04-12 | 1 | -4/+8 |
| | | |||||
| * | Add kwargs for AWS creds for DynamoDbDict | Jordan Cook | 2021-04-12 | 1 | -1/+11 |
| | | |||||
| * | Update all backend-specific integration tests to fail quickly if not set up, ↵ | Jordan Cook | 2021-04-12 | 1 | -11/+11 |
| | | | | | rarther than silently ignoring or hanging | ||||
| * | Make parent dirs for new SQLite databases | Jordan Cook | 2021-04-11 | 1 | -8/+18 |
| | | |||||
| * | Demote most logging.info statements to debug | Jordan Cook | 2021-04-10 | 2 | -3/+3 |
| | | |||||
| * | Handle errors due to invalid responses in `BaseCache.urls` | Jordan Cook | 2021-04-10 | 1 | -14/+18 |
| | | |||||
| * | Add remove_old_entries() back to BaseCache as an alias with a DeprecationWarning | Jordan Cook | 2021-04-10 | 1 | -0/+5 |
| | | |||||
| * | Improvements to Sphinx documentation: | Jordan Cook | 2021-04-03 | 3 | -26/+24 |
| | | | | | | | | | | | | | | | * 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 Cook | 2021-04-02 | 2 | -70/+79 |
| | | | | | | | | * 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 | ||||
| * | Add 'verify' param to cache key | Jordan Cook | 2021-04-01 | 1 | -2/+2 |
| | | | | | Closes #209 | ||||
| * | Rename 'add_key_mapping' to 'save_redirect' and take a request instead of a ↵ | Jordan Cook | 2021-03-31 | 1 | -6/+7 |
| | | | | | cache key | ||||
| * | Fix BaseCache.urls to return only response URLs (no redirect keys) | Jordan Cook | 2021-03-30 | 1 | -1/+1 |
| | | |||||
| * | For SQLite backend, run VACUUM after remove_expired_responses() | Jordan Cook | 2021-03-30 | 1 | -0/+10 |
| | | |||||
| * | Move cache key utilities to a separate module | Jordan Cook | 2021-03-30 | 2 | -102/+12 |
| | | |||||
| * | Add normalization for request json | Jordan Cook | 2021-03-30 | 2 | -5/+30 |
| | | |||||
| * | Use url-normalize for additional URL normalization for cache keys | Jordan Cook | 2021-03-30 | 1 | -2/+6 |
| | | |||||
| * | Also remove invalid responses when running remove_expired_responses() | Jordan Cook | 2021-03-30 | 2 | -13/+16 |
| | | |||||
| * | Add logging to main cache operations | Jordan Cook | 2021-03-30 | 2 | -16/+33 |
| | | |||||
| * | Update get_response + tests to check additional error types | Jordan Cook | 2021-03-29 | 1 | -1/+1 |
| | | |||||
| * | Remove some redundant module docstrings, and fix some ref links | Jordan Cook | 2021-03-29 | 2 | -13/+1 |
| | | |||||
| * | Handle AttributeErrors when a cached item can't be deserialized | Jordan Cook | 2021-03-29 | 1 | -1/+4 |
| | | |||||
| * | Show warning when using pickle without itsdangerous | Jordan Cook | 2021-03-28 | 2 | -4/+12 |
| | | |||||
| * | Expose timeout parameter for SQLite backend | Jordan Cook | 2021-03-24 | 1 | -15/+15 |
| | | |||||
| * | Pass along optional kwargs to all storage classes, and make default table ↵ | Jordan Cook | 2021-03-24 | 7 | -42/+41 |
| | | | | | names consistent across backends (`'http_cache'`) | ||||
| * | Enable DynamoDB integration test with GitHub Actions and local ↵ | Jordan Cook | 2021-03-24 | 1 | -1/+1 |
| | | | | | docker-compose; use in-memory database | ||||
| * | Combine storage classes from backends.storage.* with their respective ↵ | Jordan Cook | 2021-03-24 | 12 | -537/+453 |
| | | | | | backends in backends.* | ||||
| * | Add optional integration with intsdangerous for safer serialization | Jordan Cook | 2021-03-24 | 6 | -45/+89 |
| | | |||||
| * | Rename BaseCache.keys_map property and its associated table to 'redirects' | Jordan Cook | 2021-03-24 | 6 | -18/+16 |
| | | |||||
| * | Add a 'urls' property on BaseCache to get all cached URLs | Jordan Cook | 2021-03-24 | 1 | -0/+8 |
| | | | | | Closes #155 | ||||
