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

[Feature request] Hash key support #619

Open
rdong8 opened this issue Oct 27, 2024 · 1 comment
Open

[Feature request] Hash key support #619

rdong8 opened this issue Oct 27, 2024 · 1 comment

Comments

@rdong8
Copy link

rdong8 commented Oct 27, 2024

I'm looking for an equivalent to a feature like this from the cachetools library. For instance, an app could use multiple DB connections to fetch the same data, even though those connections might not have the same image under the hash. Without the ability to exclude the DB connection from the hash key, you'd incur unnecessary cache misses.

@Dreamsorcerer
Copy link
Member

I think this library is meant to be a simple replacement for lru_cache. So if it's not something in lru_cache, then we probably won't end up supporting it here.

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

No branches or pull requests

2 participants