func()

in secretcache/lruCache.go [48:61]


func (l *lruCache) get(key string) (interface{}, bool) {
	l.mux.Lock()
	defer l.mux.Unlock()

	item, found := l.cacheMap[key]

	if !found {
		return nil, false
	}

	l.updateHead(item)

	return item.data, true
}