Do not refresh use time for tiles when collecting used source tiles
This commit is contained in:
@@ -214,6 +214,18 @@ class LRUCache {
|
||||
return this.newest_.key_;
|
||||
}
|
||||
|
||||
/**
|
||||
* Return an entry without updating least recently used time.
|
||||
* @param {string} key Key.
|
||||
* @return {T} Value.
|
||||
*/
|
||||
peek(key) {
|
||||
if (!this.containsKey(key)) {
|
||||
return undefined;
|
||||
}
|
||||
return this.entries_[key].value_;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return {T} value Value.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user