-
-
Notifications
You must be signed in to change notification settings - Fork 351
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
Cache seems to return unrelated values after a while #192
Comments
Can confirm, in the new version cache starts returning random values after a couple of gets / sets. For now I upgraded to v6, hope this gets resolved soon. |
Can you share any more details about how you're using it? I have a lot of tests where I fill up the cache to the point of eviction, that sounds really strange. |
There is not a limit on string length. Anything that worked before should work now, they're just keys in a map. |
https://stackblitz.com/edit/node-wccxgj?file=index.js There you go, a quick repro |
I got a fix. Will ship and backport to 7.x versions within the hour. Sorry for the hassle. |
Fixed with a patch on all 7.x minors, and deprecated all affected versions. |
I apologize in advance for not having this fully pinned down, but after updating to version 7.0.0-7.3.0, it seems as though the cache starts returning values for unrelated cache keys, after a while under moderate load (~5 minutes).
This is my cache:
And these keys:
Seem to start returning value from these keys:
(where the arguments are url escaped strings)
I haven't been able to reproduce it locally yet (though it does reliable begin under moderate production load), but given the delay it seems to have a 'something filling up'ness to it.
The other idea is that maybe the keys are a little long. Are there new restrictions on string keys in version 7?
Usage is limited to simple get/set, and I updated the config to match the what the migration guide recommended.
The text was updated successfully, but these errors were encountered: