func NewCache(config *config.NSPConfig, hostNetns uint64) *Cache {
	cache := &Cache{
		ProcessCache:   newPidArrayCache(config.CLI.ProcessCacheSize),
		NamespaceCache: newNamespaceMapCache(),
	}
	hostNsEntry, _ := cache.NamespaceCache.LookupNamespace(hostNetns, time.Now())
	hostNsEntry.Name = "host"
	hostNsEntry.Base = "host"
	hostNsEntry.ID = "host"
	hostNsEntry.Digest = "host"
	currentPidEntry, _, _ := cache.ProcessCache.LookupPid(uint32(os.Getpid()), time.Now())
	now := time.Now()
	currentPidEntry.ExecveTime = &now
	currentPidEntry.ForkTime = &now
	return cache
}
// NewCache - Creates a new cache
Creates a new cache
// NewCache - Creates a new cache
func NewCache(config *config.NSPConfig, hostNetns uint64) *Cache {
	cache := &Cache{
		ProcessCache:   newPidArrayCache(config.CLI.ProcessCacheSize),
		NamespaceCache: newNamespaceMapCache(),
	}
	hostNsEntry, _ := cache.NamespaceCache.LookupNamespace(hostNetns, time.Now())
	hostNsEntry.Name = "host"
	hostNsEntry.Base = "host"
	hostNsEntry.ID = "host"
	hostNsEntry.Digest = "host"
	currentPidEntry, _, _ := cache.ProcessCache.LookupPid(uint32(os.Getpid()), time.Now())
	now := time.Now()
	currentPidEntry.ExecveTime = &now
	currentPidEntry.ForkTime = &now
	return cache
}
func NewCache ( config * config . NSPConfig , hostNetns uint64 ) * Cache { cache := & Cache { ProcessCache : newPidArrayCache ( config . CLI . ProcessCacheSize ) , NamespaceCache : newNamespaceMapCache ( ) , } hostNsEntry , _ := cache . NamespaceCache . LookupNamespace ( hostNetns , time . Now ( ) ) hostNsEntry . Name = " " hostNsEntry . Base = " " hostNsEntry . ID = " " hostNsEntry . Digest = " " currentPidEntry , _ , _ := cache . ProcessCache . LookupPid ( uint32 ( os . Getpid ( ) ) , time . Now ( ) ) now := time . Now ( ) currentPidEntry . ExecveTime = & now currentPidEntry . ForkTime = & now return cache }
Creates a new cache
Creates a new cache