public bool Put(string path, T templateInfo, TimeSpan slidingExpiration) { var item = new LocalTemplateCacheItem <T>(new TemplateCacheItem <T>(path, templateInfo), slidingExpiration); _cache[path] = item; return(true); }
public bool Put(TemplateCacheKey key, T templateInfo, TimeSpan slidingExpiration) { var item = new LocalTemplateCacheItem <T>(new TemplateCacheItem <T>(key, templateInfo), slidingExpiration); _cache[key] = item; return(true); }