public OctopusCache(OctopusServer server, ILogger logger)
 {
     _cache  = new MemoryCache(new MemoryCacheOptions());
     _server = server;
     _logger = logger;
     _timer  = new Timer(TimerHandler, null, 0, Timeout.Infinite);
 }
 public OctopusCache(OctopusServer server, IAppInsights appInsights, ILogger logger)
 {
     _cache = new MemoryCache(new MemoryCacheOptions
     {
         CompactOnMemoryPressure = true,
         ExpirationScanFrequency = TimeSpan.FromMinutes(10)
     });
     _server      = server;
     _appInsights = appInsights;
     _logger      = logger;
     _timer       = new Timer(TimerHandler, null, 0, Timeout.Infinite);
 }