Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 1 of 1 for removeFromBucket (0.4 seconds)

  1. internal/lru/lru.go

    	if c.buckets[bucketID].newestEntry.Before(e.ExpiresAt) {
    		c.buckets[bucketID].newestEntry = e.ExpiresAt
    	}
    }
    
    // removeFromBucket removes the entry from its corresponding bucket. Has to be called with lock!
    func (c *LRU[K, V]) removeFromBucket(e *Entry[K, V]) {
    	delete(c.buckets[e.ExpireBucket].entries, e.Key)
    }
    
    // Cap returns the capacity of the cache
    func (c *LRU[K, V]) Cap() int {
    Created: Sun Apr 05 09:35:12 GMT 2026
    - Last Modified: Sat Mar 21 11:35:55 GMT 2026
    - 12.6K bytes
    - Click Count (0)
Back to Top