| 20 | } |
| 21 | |
| 22 | type LRU struct { |
| 23 | dl *linkedlist.Doubly[any] |
| 24 | size int |
| 25 | capacity int |
| 26 | storage map[string]*linkedlist.Node[any] |
| 27 | } |
| 28 | |
| 29 | // NewLRU represent initiate lru cache with capacity |
| 30 | func NewLRU(capacity int) LRU { |
nothing calls this directly
no outgoing calls
no test coverage detected