Table of Contents

Method GetOrCreateCache

Namespace
Autofac.Core
Assembly
Autofac.dll

GetOrCreateCache<TCacheStore>(string)

public TCacheStore GetOrCreateCache<TCacheStore>(string cacheName) where TCacheStore : IReflectionCache, new()

Parameters

cacheName string

Returns

TCacheStore

Type Parameters

TCacheStore

GetOrCreateCache<TCacheStore>(string, Func<string, TCacheStore>)

public TCacheStore GetOrCreateCache<TCacheStore>(string cacheName, Func<string, TCacheStore> cacheFactory) where TCacheStore : IReflectionCache

Parameters

cacheName string
cacheFactory Func<string, TCacheStore>

Returns

TCacheStore

Type Parameters

TCacheStore