I'm going to use the CacheManager which should handle my caching for me. When do I have to dispose it?
Is it meant to be created every time I access the cache with a using statement?
In this case I would have to write my initialization every time?
var cache = CacheFactory.Build("cache1", settings =>
{
settings
.WithSystemRuntimeCacheHandle("handle1")
.EnablePerformanceCounters()
.WithExpiration(ExpirationMode.Absolute, TimeSpan.FromMinutes(10));
});
Or how am I supposed to use/dispose it? I'm actually getting code analysis warnings that I should dispose it.