Closed MarkusTischendorf closed 6 years ago
Yes, that code was wrong. bad code!
As far as I can tell, it was returning the found item, it was just never updating the MRU list.
I really need some unit tests for these common classes. 😞
I've fixed it with this change: https://github.com/mattwar/iqtoolkit/pull/11/commits/a708c62d6646f5156de5970a18626c4cec2fe096
Hi Matt,
i think there is an issue in the MastRecentlyUsedCache class in method Lookup.
The method is always returing the last query not the one it found:
I think this should be correct:
The for-loop is two times in that method.
Thanks and best regards,
Markus