func (cache *namespaceMapCache) LookupNamespace(netns uint64, evtTs time.Time) (*model.NamespaceCacheEntry, bool) {
	cache.Lock()
	entry, ok := cache.entries[netns]
	inCache := ok
	if !ok || entry.ExitTime != nil && evtTs.After(entry.ExitTime.Add(100*time.Millisecond)) {
		entry = &model.NamespaceCacheEntry{}
		cache.entries[netns] = entry
	}
	if ok {
		inCache = entry.IsInCache()
	}
	cache.Unlock()
	return entry, inCache
}
// LookupNamespace - Returns an existing or create the netns cache entry
Returns an existing or create the netns cache entry
// LookupNamespace - Returns an existing or create the netns cache entry
func (cache *namespaceMapCache) LookupNamespace(netns uint64, evtTs time.Time) (*model.NamespaceCacheEntry, bool) {
	cache.Lock()
	entry, ok := cache.entries[netns]
	inCache := ok
	if !ok || entry.ExitTime != nil && evtTs.After(entry.ExitTime.Add(100*time.Millisecond)) {
		entry = &model.NamespaceCacheEntry{}
		cache.entries[netns] = entry
	}
	if ok {
		inCache = entry.IsInCache()
	}
	cache.Unlock()
	return entry, inCache
}
func ( cache * namespaceMapCache ) LookupNamespace ( netns uint64 , evtTs time . Time ) ( * model . NamespaceCacheEntry , bool ) { cache . Lock ( ) entry , ok := cache . entries [ netns ] inCache := ok if ! ok || entry . ExitTime != nil && evtTs . After ( entry . ExitTime . Add ( 100 * time . Millisecond ) ) { entry = & model . NamespaceCacheEntry { } cache . entries [ netns ] = entry } if ok { inCache = entry . IsInCache ( ) } cache . Unlock ( ) return entry , inCache }
Returns an existing or create the netns cache entry
Returns an existing or create the netns cache entry