Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
357
func
(c *LRU[K, V]) Cap() int {
358
return
c.size
359
}
360
361
// Entry is an LRU Entry
362
type
Entry[K comparable, V any]
struct
{
Callers
4
Scan
Function · 0.80
saveAssociation
Method · 0.80
TestLRU_Add_Eviction
Function · 0.80
TestLRURemoveOldest
Function · 0.80
Calls
no outgoing calls
Tested by
2
TestLRU_Add_Eviction
Function · 0.64
TestLRURemoveOldest
Function · 0.64