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

Method lazyInit

internal/lru/lru.go:425–429  ·  view source on GitHub ↗

lazyInit lazily initializes a zero List Value.

()

Source from the content-addressed store, hash-verified

423
424// lazyInit lazily initializes a zero List Value.
425func (l *LruList[K, V]) lazyInit() {
426 if l.root.next == nil {
427 l.Init()
428 }
429}
430
431// insert inserts e after at, increments l.len, and returns e.
432func (l *LruList[K, V]) insert(e, at *Entry[K, V]) *Entry[K, V] {

Callers 2

PushFrontMethod · 0.95
PushFrontExpirableMethod · 0.95

Calls 1

InitMethod · 0.95

Tested by

no test coverage detected