-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
turn LRUCache into tile-specific TileCache
LRUCache was only being used for tiles and recently we started adding some non-standard behaviour including storing multiple values for a single key. This pr: - replaces `number` key with `OverscaledTileID` so that we can enforce the type and enforce tile id wrapping - moves expiry logic into cache and gets rid of `cacheTimers` in `SourceCache`
- Loading branch information
Showing
5 changed files
with
215 additions
and
188 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
Oops, something went wrong.