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

Method Cap

internal/lru/lru.go:357–359  ·  view source on GitHub ↗

Cap returns the capacity of the cache

()

Source from the content-addressed store, hash-verified

355
356// Cap returns the capacity of the cache
357func (c *LRU[K, V]) Cap() int {
358 return c.size
359}
360
361// Entry is an LRU Entry
362type Entry[K comparable, V any] struct {

Callers 4

ScanFunction · 0.80
saveAssociationMethod · 0.80
TestLRU_Add_EvictionFunction · 0.80
TestLRURemoveOldestFunction · 0.80

Calls

no outgoing calls

Tested by 2

TestLRU_Add_EvictionFunction · 0.64
TestLRURemoveOldestFunction · 0.64