public Element Get(string name, string category, string culture) { var cachedKey = new ElementCacheKey(name, category, culture); Element element = CachedElements[cachedKey] as Element; //.FirstOrDefault(i => i.Name == key && i.Category == category && i.Culture == culture.Name); if (element == null) { element = inner.Get(name, category, culture); if (element != null) { AddCache(element); } } return(element); }
/// <summary> /// Gets the specified name. /// </summary> /// <param name="name">The name.</param> /// <param name="category">The category.</param> /// <param name="culture">The culture.</param> /// <returns>Element.</returns> public Element Get(string name, string category, string culture) { return(_cacheRepository.Get(name, category, culture)); }