MCPcopy
hub / github.com/go-gorm/gorm / Init

Method Init

internal/lru/lru.go:402–407  ·  view source on GitHub ↗

Init initializes or clears list l.

()

Source from the content-addressed store, hash-verified

400
401// Init initializes or clears list l.
402func (l *LruList[K, V]) Init() *LruList[K, V] {
403 l.root.next = &l.root
404 l.root.prev = &l.root
405 l.len = 0
406 return l
407}
408
409// NewList returns an initialized list.
410func NewList[K comparable, V any]() *LruList[K, V] { return new(LruList[K, V]).Init() }

Callers 3

lazyInitMethod · 0.95
PurgeMethod · 0.80
NewListFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected