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

Convert responseErrors cache to an LRU cache #40

Open
n-peugnet opened this issue Feb 21, 2023 · 0 comments
Open

Convert responseErrors cache to an LRU cache #40

n-peugnet opened this issue Feb 21, 2023 · 0 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@n-peugnet
Copy link
Member

n-peugnet commented Feb 21, 2023

This should not be too hard to do. Given it is currently a FIFO one, it is implemented with a simply linked list. We wilk have to use a doubly linked list instead to be able to move the elements.

private static responseErrors: Cache<boolean> = new FIFOCache(128);

@n-peugnet n-peugnet added the enhancement New feature or request label Feb 21, 2023
@n-peugnet n-peugnet changed the title Convert ErrorResponses cache to an LRU cache Convert responseErrors cache to an LRU cache Feb 21, 2023
@n-peugnet n-peugnet added the good first issue Good for newcomers label Feb 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant