insertValue is a convenience wrapper for insert(&Entry{Value: v, ExpiresAt: ExpiresAt}, at).
(k K, v V, expiresAt time.Time, at *Entry[K, V])
| 441 | |
| 442 | // insertValue is a convenience wrapper for insert(&Entry{Value: v, ExpiresAt: ExpiresAt}, at). |
| 443 | func (l *LruList[K, V]) insertValue(k K, v V, expiresAt time.Time, at *Entry[K, V]) *Entry[K, V] { |
| 444 | return l.insert(&Entry[K, V]{Value: v, Key: k, ExpiresAt: expiresAt}, at) |
| 445 | } |
| 446 | |
| 447 | // Remove removes e from its list, decrements l.len |
| 448 | func (l *LruList[K, V]) Remove(e *Entry[K, V]) V { |
no test coverage detected