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

RedisCache support for callable key prefixes was removed as of 1.11.0 #529

Open
jfrag1 opened this issue Sep 8, 2023 · 1 comment
Open

Comments

@jfrag1
Copy link

jfrag1 commented Sep 8, 2023

In version 1.10.1, RedisCache supported a callable key prefix being passed, thanks to the following _get_prefix function:

def _get_prefix(self):
    return (
        self.key_prefix if isinstance(self.key_prefix, str) else self.key_prefix()
    )

However in 1.11.0, #308 replaced usages of this function with implementations from cachelib, which does not have such a function for supporting a callable key prefix.

Environment:

  • Python version: N/A
  • Flask-Caching version: >=1.11.0
@dbascoules
Copy link
Contributor

Hello,
See pallets-eco/cachelib#332 for a resolution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging a pull request may close this issue.

2 participants