Before the message: this diff changes behaviour, and I don’t think intentionally. delete then set is what moves the key to the end of a Map’s insertion order — that is how this LRU marks an entry as “recently used”. set alone on an existing key keeps its old position, so after this change nothing is ever promoted and eviction becomes FIFO.
If that’s intended, the message is:
refactor(cache): drop re-insertion on get, making LRU behave as FIFO
If it isn’t (my bet), revert the line and there is no commit to write.
Comments (0)
No comments yet.
Sign in to comment.