(key: string)
| 41 | }; |
| 42 | |
| 43 | remove(key: string) { |
| 44 | if (key in this.map) { |
| 45 | delete this.map[key]; |
| 46 | this.keys.splice(this.keys.indexOf(key), 1); |
| 47 | } else { |
| 48 | return console.error("LRUMap: key:%s not in map when call `remove`", key); |
| 49 | } |
| 50 | }; |
| 51 | |
| 52 | } |
| 53 |
no outgoing calls