Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(flask-caching): support v2.0 (backport #3882) #3891

Merged
merged 1 commit into from
Jul 1, 2022

Commits on Jul 1, 2022

  1. fix(flask-caching): support v2.0 (#3882)

    ## Description
    
    flask-caching released version 2.0 which moves the cache client to a new library
    called [`cachelib`](https://github.com/pallets-eco/cachelib).
    
    Diff here: pallets-eco/flask-caching@v1.10.0...v2.0.0
    
    This breaks our logic which collects tags for the redis client.
    
    ## Fix
    
    It was noticed that both `_write_client` and `_read_client` use the same connection information
    so we don't need to dynamically check for each.
    
    Also [`_read_clients`](https://github.com/pallets-eco/flask-caching/blob/ac13e01baa11d65c68dcba64f99ccaafd9b5419c/src/flask_caching/backends/rediscache.py#L62) was moved to [`_read_client`](https://github.com/pallets-eco/cachelib/blob/13c8bf8db156dd06154f5e08e23bdd9e73480a5b/src/cachelib/redis.py#L29) when the logic was moved to `cachelib`.
    
    (cherry picked from commit 94b0770)
    Kyle-Verhoog authored and mergify[bot] committed Jul 1, 2022
    Configuration menu
    Copy the full SHA
    05cef66 View commit details
    Browse the repository at this point in the history