Documentation
¶
Index ¶
- type Direction
- type Element
- type List
- func (l *List[T]) Back() *Element[T]
- func (l *List[T]) FreeElement(e *Element[T])
- func (l *List[T]) Len() int
- func (l *List[T]) MoveToFront(e *Element[T])
- func (l *List[T]) Next(offset int) (*Element[T], bool)
- func (l *List[T]) PushBack(v T) *Element[T]
- func (l *List[T]) PushFront(v T) *Element[T]
- func (l *List[T]) Remove(e *Element[T])
- func (l *List[T]) Sort(ord Order)
- type Order
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type List ¶
List is a shard-local doubly linked list for LRU order.
func (*List[T]) FreeElement ¶ added in v1.0.1
func (*List[T]) MoveToFront ¶
MoveToFront moves e to the front.
Click to show internal directories.
Click to hide internal directories.