MCPcopy Index your code
hub / github.com/dosco/graphjin / initCache

Method initCache

core/cache.go:86–89  ·  view source on GitHub ↗

initCache initializes the cache

()

Source from the content-addressed store, hash-verified

84
85// initCache initializes the cache
86func (gj *graphjinEngine) initCache() (err error) {
87 gj.cache.cache, err = lru.New2Q[string, []byte](5000)
88 return
89}
90
91// Get returns the value from the cache
92func (c Cache) Get(key string) (val []byte, fromCache bool) {

Callers 3

newGraphJinMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected