public T Get <T>(string key, Func <T> loader) { if (!_cache.Contains(key)) { _cache.Add(key, loader(), DateTimeOffset.UtcNow.AddSeconds(_config.CacheDurationSeconds)); } return((T)_cache.GetCacheItem(key).Value); }