* if key exist then return true otherwise false * @param {any} key * @returns {boolean}
(key)
| 136 | * @returns {boolean} |
| 137 | */ |
| 138 | has(key) { |
| 139 | key = String(key) // converted to string |
| 140 | |
| 141 | return this.cache.has(key) |
| 142 | } |
| 143 | |
| 144 | /** |
| 145 | * @method get |