Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for LruList (0.03 sec)

  1. internal/lru/lru.go

    // Init initializes or clears list l.
    func (l *LruList[K, V]) Init() *LruList[K, V] {
    	l.root.next = &l.root
    	l.root.prev = &l.root
    	l.len = 0
    	return l
    }
    
    // NewList returns an initialized list.
    func NewList[K comparable, V any]() *LruList[K, V] { return new(LruList[K, V]).Init() }
    
    // Length returns the number of elements of list l.
    // The complexity is O(1).
    func (l *LruList[K, V]) Length() int { return l.len }
    
    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