Do not refresh use time for tiles when collecting used source tiles
This commit is contained in:
1 parent
e0d6ee3308
commit
7b9fc4c995
2 files changed
+15
-2
No files matched your search
@@ -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