Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for addToBucket (0.09 sec)

  1. internal/lru/lru.go

    		ent.Value = value
    		ent.ExpiresAt = now.Add(c.ttl)
    		c.addToBucket(ent)
    		return false
    	}
    
    	// Add new item
    	ent := c.evictList.PushFrontExpirable(key, value, now.Add(c.ttl))
    	c.items[key] = ent
    	c.addToBucket(ent) // adds the entry to the appropriate bucket and sets entry.expireBucket
    
    	evict := c.size > 0 && c.evictList.Length() > c.size
    Registered: Sun Sep 07 09:35:13 UTC 2025
    - Last Modified: Fri Apr 25 08:22:26 UTC 2025
    - 12.5K bytes
    - Viewed (0)
Back to top