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

Method Back

internal/lru/lru.go:417–422  ·  view source on GitHub ↗

Back returns the last element of list l or nil if the list is empty.

()

Source from the content-addressed store, hash-verified

415
416// Back returns the last element of list l or nil if the list is empty.
417func (l *LruList[K, V]) Back() *Entry[K, V] {
418 if l.len == 0 {
419 return nil
420 }
421 return l.root.prev
422}
423
424// lazyInit lazily initializes a zero List Value.
425func (l *LruList[K, V]) lazyInit() {

Callers 6

RemoveOldestMethod · 0.80
GetOldestMethod · 0.80
KeyValuesMethod · 0.80
KeysMethod · 0.80
ValuesMethod · 0.80
removeOldestMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected