-
Notifications
You must be signed in to change notification settings - Fork 289
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Initial pass at fixing the memory cache * Account for loading state in lru cache unload logic * Remove nodes after the fact * Simplify LRUCache eviction logic * Add "loading" field for cache tiles * Handle unloading correctly * Remove log * Don't try to dispose of any items above the max cache sizes unless we have tiles that are still loading * Comment * comments * Comments * Fix tests, ensure we only exit eviction loops when both size conditions are met * Update tests * Update LRUCache.js
- Loading branch information
Showing
5 changed files
with
196 additions
and
47 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
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
Oops, something went wrong.