Len returns the number of items in the cache.
()
| 85 | |
| 86 | // Len returns the number of items in the cache. |
| 87 | func (l *LRUCache[K, V]) Len() int { |
| 88 | return l.length |
| 89 | } |
| 90 | |
| 91 | func (l *LRUCache[K, V]) addNode(node *lruNode[K, V]) { |
| 92 | if l.tail != nil { |
no outgoing calls