This repository has been archived by the owner on Sep 5, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(mdUtil): remove/delete cacheFactory keys when clearing/destroying…
… cache `mdUtil`'s custom `cacheFactory` factory, adds/removes keys when putting/removing a single key, but leaves `keys` untouched when calling `removeAll()` or `destroy()`. As a result, the following problems arise: - Keys of destroyed caches continue to take up memory. - The `keys()` method return incorrect results after calling `removeAll()` (i.e. it continues to return the old keys, although they are not present in the cache any more). This commit fixes these issues, by overriding the `removeAll` and `destroy` methods as well.
- Loading branch information
1 parent
bc8706a
commit 8736c7c
Showing
2 changed files
with
47 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters