MCPcopy
hub / github.com/duke-git/lancet / Len

Method Len

algorithm/lrucache.go:87–89  ·  view source on GitHub ↗

Len returns the number of items in the cache.

()

Source from the content-addressed store, hash-verified

85
86// Len returns the number of items in the cache.
87func (l *LRUCache[K, V]) Len() int {
88 return l.length
89}
90
91func (l *LRUCache[K, V]) addNode(node *lruNode[K, V]) {
92 if l.tail != nil {

Callers 13

FlattenFunction · 0.45
flattenRecursiveFunction · 0.45
InterfaceSliceFunction · 0.45
StringSliceFunction · 0.45
IntSliceFunction · 0.45
cloneArrayMethod · 0.45
setFileFunction · 0.45
setBodyByteFunction · 0.45
IsZeroValueFunction · 0.45
ExampleLRUCache_LenFunction · 0.45
TestLRUCacheFunction · 0.45
reflectValueFunction · 0.45

Calls

no outgoing calls

Tested by 2

ExampleLRUCache_LenFunction · 0.36
TestLRUCacheFunction · 0.36