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

wipe cache? #300

Open
nschloe opened this issue Jan 15, 2025 · 2 comments
Open

wipe cache? #300

nschloe opened this issue Jan 15, 2025 · 2 comments

Comments

@nschloe
Copy link

nschloe commented Jan 15, 2025

I'd like to wipe the entire cache. (For testing, and to give some cache control to users.) Any hint on how to do that?

Also, how can I remove cache entries with particular URLs?

@nschloe nschloe changed the title wipe entire cache? wipe cache? Jan 15, 2025
@cmarqu
Copy link

cmarqu commented Jan 18, 2025

The remove method from #241 sounds related.

@karpetrosyan
Copy link
Owner

Yep, as mentioned, @cmarqu, there is a remove API for storages, though it's not documented yet. There is no other cache manipulation API except for the default storage API, as we support various storages, and abstracting some methods for them could be challenging. However, I think you can manipulate, for example, a Redis store yourself in parallel with Hishel, or the filesystem if you use file storage.

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

3 participants