(key: string, value: any)
| 9 | map: Dict = {}; |
| 10 | |
| 11 | push(key: string, value: any) { |
| 12 | if (key in this.map) |
| 13 | return console.error("LRUMap: key:%s already in map", key); |
| 14 | this.keys.push(key); |
| 15 | this.map[key] = value; |
| 16 | }; |
| 17 | |
| 18 | get_value(key: string) { |
| 19 | return this.map[key]; |
no outgoing calls
no test coverage detected