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

[Question] How to manually expire an entry ? #67

Open
sorasful opened this issue Jun 16, 2022 · 1 comment
Open

[Question] How to manually expire an entry ? #67

sorasful opened this issue Jun 16, 2022 · 1 comment

Comments

@sorasful
Copy link

Hi there,

I know that the keys are supposed to expire after some time, but I was wondering if there were some kind of mechanism to manually expire an entry ?

Thank you !

@petar-varga
Copy link

I don't have much experience with this project/package, but based on what I saw, they utilize regular key: value pairs to provide caching (see some key formatting rules in the docs: https://pypi.org/project/fastapi-redis-cache/#:~:text=two%20hours%22%7D-,Cache%20Keys,-Consider%20the%20/get_user).

My solution to manually invalidate/expire caching entry would be to delete the key by calling the Redis command itself.

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