PushFrontExpirable inserts a new expirable element e with Value v at the front of list l and returns e.
(k K, v V, expiresAt time.Time)
| 478 | |
| 479 | // PushFrontExpirable inserts a new expirable element e with Value v at the front of list l and returns e. |
| 480 | func (l *LruList[K, V]) PushFrontExpirable(k K, v V, expiresAt time.Time) *Entry[K, V] { |
| 481 | l.lazyInit() |
| 482 | return l.insertValue(k, v, expiresAt, &l.root) |
| 483 | } |
| 484 | |
| 485 | // MoveToFront moves element e to the front of list l. |
| 486 | // If e is not an element of l, the list is not modified. |
no test coverage detected