-
Notifications
You must be signed in to change notification settings - Fork 156
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
capacity does not work on often reload #179
Comments
What does |
Page reload. So every time cache initialized again. |
I need to see your entire cache configuration. Code examples please. Version please. Even better, a plunker that demonstrates the issue. Details! |
capacity:10 on every page load http get: request?random puts on the cache so if i make 1000 loads it make 1000 entries in localstorage |
Could you please fork this plunker and demonstrate the issue? http://plnkr.co/edit/RXWGpYqRAfKPS6R38MXs?p=preview |
Refresh result and see as keys count exceed capacity |
Indeed it does. |
Can you try 4.4.0 and see if it works better? |
You can try the same plunker. Result the same. |
capacity setted to 10
cache.keys().length = 135
on every page reload it requests resource and put into cache
this code does not work because $$lruHeap.size() equals to 1
so capacity does not remove old items if they does not expire
The text was updated successfully, but these errors were encountered: