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

Use a LRU with dashmap on StaticFileProvider #10888

Open
joshieDo opened this issue Sep 13, 2024 · 0 comments
Open

Use a LRU with dashmap on StaticFileProvider #10888

joshieDo opened this issue Sep 13, 2024 · 0 comments
Assignees
Labels
A-static-files Related to static files C-enhancement New feature or request

Comments

@joshieDo
Copy link
Collaborator

joshieDo commented Sep 13, 2024

Describe the feature

StaticFileProvider will essentially keep files open in cache when it provides data.

Depending on the usage pattern (eg. #10887), it may hit a host file limit. Adding a LRU should avoid that.

Or

Enforce only keeping the last N in cache

Additional context

No response

@joshieDo joshieDo added C-enhancement New feature or request A-static-files Related to static files labels Sep 13, 2024
@joshieDo joshieDo changed the title Use kind of LRU with dashmap on StaticFileProvider Use a LRU with dashmap on StaticFileProvider Sep 13, 2024
@joshieDo joshieDo self-assigned this Sep 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-static-files Related to static files C-enhancement New feature or request
Projects
Status: Todo
Development

No branches or pull requests

1 participant