(key: Key)
| 57 | } |
| 58 | |
| 59 | delete(key: Key): void { |
| 60 | const result = this.nodes.get(key); |
| 61 | |
| 62 | if (result) { |
| 63 | this.removeNode(result); |
| 64 | this.nodes.delete(key); |
| 65 | } |
| 66 | } |
| 67 | |
| 68 | private insertHead(node: LRUNode<Key, Value>): void { |
| 69 | if (this.head) { |
no test coverage detected