Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for MoveToFront (0.52 sec)

  1. internal/lru/lru.go

    	l.lazyInit()
    	return l.insertValue(k, v, expiresAt, &l.root)
    }
    
    // MoveToFront moves element e to the front of list l.
    // If e is not an element of l, the list is not modified.
    // The element must not be nil.
    func (l *LruList[K, V]) MoveToFront(e *Entry[K, V]) {
    	if e.list != l || l.root.next == e {
    		return
    	}
    	// see comment in List.Remove about initialization of l
    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