removeFromBucket removes the entry from its corresponding bucket. Has to be called with lock!
(e *Entry[K, V])
| 350 | |
| 351 | // removeFromBucket removes the entry from its corresponding bucket. Has to be called with lock! |
| 352 | func (c *LRU[K, V]) removeFromBucket(e *Entry[K, V]) { |
| 353 | delete(c.buckets[e.ExpireBucket].entries, e.Key) |
| 354 | } |
| 355 | |
| 356 | // Cap returns the capacity of the cache |
| 357 | func (c *LRU[K, V]) Cap() int { |
no outgoing calls
no test coverage detected