Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix the bug in LFUCache#put() method
We should not adopt the scheme of "first put new elements, then judge the capacity, and if it is full, trigger the proceedEviction() method".Instead, we should adopt the scheme of "first determine the capacity, then trigger the proceedEviction() method if it is full, and finally put in new elements".
- Loading branch information