Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for PushFrontExpirable (0.33 sec)

  1. internal/lru/lru.go

    func (l *LruList[K, V]) PushFront(k K, v V) *Entry[K, V] {
    	l.lazyInit()
    	return l.insertValue(k, v, time.Time{}, &l.root)
    }
    
    // PushFrontExpirable inserts a new expirable element e with Value v at the front of list l and returns e.
    func (l *LruList[K, V]) PushFrontExpirable(k K, v V, expiresAt time.Time) *Entry[K, V] {
    	l.lazyInit()
    	return l.insertValue(k, v, expiresAt, &l.root)
    }
    
    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