initCache initializes the cache
()
| 84 | |
| 85 | // initCache initializes the cache |
| 86 | func (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 |
| 92 | func (c Cache) Get(key string) (val []byte, fromCache bool) { |
no outgoing calls
no test coverage detected