Do not refresh use time for tiles when collecting used source tiles

This commit is contained in:
Maximilian Krög committed 2022-06-28 17:20:42 +02:00
1 parent e0d6ee3308
commit 7b9fc4c995
2 files changed
+15 -2

No files matched your search

+12
View File
@@ -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.
*/