Skip to content
This repository has been archived by the owner on Nov 22, 2022. It is now read-only.

Bump requests-cache from 0.5.2 to 0.7.2 in /server #666

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

dependabot-preview[bot]
Copy link
Contributor

Bumps requests-cache from 0.5.2 to 0.7.2.

Changelog

Sourced from requests-cache's changelog.

0.7.2 (2021-07-21)

  • Add support for Response.next (to get the next request in a redirect chain) when 302 responses are cached directly
  • Add a CachedResponse.cache_key attribute
  • Make CachedResponse a non-slotted class to allow client code to set arbitrary attributes on it

0.7.1 (2021-07-09)

  • Fix a bug in which Cache-Control headers would be used unexpectedly

0.7.0 (2021-07-07)

See all issues and PRs for 0.7

Backends

  • Add a filesystem backend that stores responses as local files
  • SQLite and filesystem: Add use_temp option to store files in a temp directory
  • SQLite: Use persistent thread-local connections, and improve performance for bulk operations
  • DynamoDB: Fix DynamoDbDict.__iter__ to return keys instead of values
  • MongoDB: Remove usage of deprecated pymongo Collection.find_and_modify()
  • Allow passing any backend-specific connection kwargs via CachedSession to the underlying connection function or object:
    • SQLite: sqlite3.connect
    • DynamoDB: boto3.resource
    • Redis: redis.Redis
    • MongoDB and GridFS: pymongo.MongoClient

Expiration

  • Add optional support for the following request headers:
    • Cache-Control: max-age
    • Cache-Control: no-cache
    • Cache-Control: no-store
  • Add optional support for the following response headers:
    • Cache-Control: max-age
    • Cache-Control: no-store
    • Expires
  • Add cache_control option to CachedSession to enable usage of cache headers
  • Add support for HTTP timestamps (RFC 5322) in expire_after parameters
  • Add support for bypassing the cache if expire_after=0
  • Add support for making a cache whitelist using URL patterns

Serialization

  • Add data models for all serialized objects
  • Add a BSON serializer
  • Add a JSON serializer
  • Add optional support for cattrs
  • Add optional support for ultrajson

General

  • Add option to manually cache response objects with BaseCache.save_response()
  • Add BaseCache.keys() and values() methods
  • Add BaseCache.response_count() method to get an accurate count of responses (excluding invalid and expired)
  • Show summarized response details with str(CachedResponse)
  • Add more detailed repr methods for CachedSession, CachedResponse, and BaseCache

... (truncated)

Commits

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
  • @dependabot use these labels will set the current labels as the default for future PRs for this repo and language
  • @dependabot use these reviewers will set the current reviewers as the default for future PRs for this repo and language
  • @dependabot use these assignees will set the current assignees as the default for future PRs for this repo and language
  • @dependabot use this milestone will set the current milestone as the default for future PRs for this repo and language
  • @dependabot badge me will comment on this PR with code to add a "Dependabot enabled" badge to your readme

Additionally, you can set the following in your Dependabot dashboard:

  • Update frequency (including time of day and day of week)
  • Pull request limits (per update run and/or open at any time)
  • Automerge options (never/patch/minor, and dev/runtime dependencies)
  • Out-of-range updates (receive only lockfile updates, if desired)
  • Security updates (receive only security updates, if desired)

@dependabot-preview dependabot-preview bot added dependencies Pull requests that update a dependency file python Pull requests that update Python code labels Jul 26, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
dependencies Pull requests that update a dependency file python Pull requests that update Python code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants