| Index: ui/file_manager/file_manager/common/js/lru_cache.js
|
| diff --git a/ui/file_manager/file_manager/common/js/lru_cache.js b/ui/file_manager/file_manager/common/js/lru_cache.js
|
| index ab1addf78b6f89feed0d0c303cdbd0f3474d7bc1..5139e607438721438e8bf696ddf2aef399d4a054 100644
|
| --- a/ui/file_manager/file_manager/common/js/lru_cache.js
|
| +++ b/ui/file_manager/file_manager/common/js/lru_cache.js
|
| @@ -127,6 +127,15 @@ LRUCache.prototype.peek = function(key) {
|
| };
|
|
|
| /**
|
| + * Returns true if the cache contains the key.
|
| + * @param {string} key
|
| + * @return {boolean}
|
| + */
|
| +LRUCache.prototype.hasKey = function(key) {
|
| + return key in this.nodes_;
|
| +};
|
| +
|
| +/**
|
| * Saves an item in this cache. The saved item will be the most recently used
|
| * item and won't be evicted soon. If an item with the same key already exists
|
| * in the cache, the existing item's value and size will be updated and the item
|
|
|