Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 1 of 1 for GetOldest (0.14 seconds)

  1. internal/lru/lru.go

    	c.mu.Lock()
    	defer c.mu.Unlock()
    	if ent := c.evictList.Back(); ent != nil {
    		c.removeElement(ent)
    		return ent.Key, ent.Value, true
    	}
    	return
    }
    
    // GetOldest returns the oldest entry
    func (c *LRU[K, V]) GetOldest() (key K, value V, ok bool) {
    	c.mu.RLock()
    	defer c.mu.RUnlock()
    	if ent := c.evictList.Back(); ent != nil {
    		return ent.Key, ent.Value, true
    	}
    	return
    }
    
    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