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

Method PrevEntry

internal/lru/lru.go:387–392  ·  view source on GitHub ↗

PrevEntry returns the previous list element or nil.

()

Source from the content-addressed store, hash-verified

385
386// PrevEntry returns the previous list element or nil.
387func (e *Entry[K, V]) PrevEntry() *Entry[K, V] {
388 if p := e.prev; e.list != nil && p != &e.list.root {
389 return p
390 }
391 return nil
392}
393
394// LruList represents a doubly linked list.
395// The zero Value for LruList is an empty list ready to use.

Callers 3

KeyValuesMethod · 0.80
KeysMethod · 0.80
ValuesMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected