Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 1 of 1 for ent (0.01 seconds)

  1. internal/lru/lru.go

    	c.mu.RLock()
    	defer c.mu.RUnlock()
    	if ent := c.evictList.Back(); ent != nil {
    		return ent.Key, ent.Value, true
    	}
    	return
    }
    
    func (c *LRU[K, V]) KeyValues() map[K]V {
    	c.mu.RLock()
    	defer c.mu.RUnlock()
    	maps := make(map[K]V)
    	now := time.Now()
    	for ent := c.evictList.Back(); ent != nil; ent = ent.PrevEntry() {
    		if now.After(ent.ExpiresAt) {
    			continue
    		}
    		maps[ent.Key] = ent.Value
    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