private void InvalidateCache(object sender, CacheInvalidatedEventArgs e) { ContentChanged(this, e); }
private void InvalidateCache(object sender, CacheInvalidatedEventArgs cacheInvalidatedEventArgs) { contentTreeCache.Remove(ContentTreeCacheKey); ContentChanged(this, new EventArgs()); }
private void InvalidateCache(object sender, CacheInvalidatedEventArgs e) { var cache = MemoryCache.Default; cache.Set(ContentTreeCacheImplementation.ContentTreeOutputCacheKey, Guid.NewGuid().ToString(), new DateTimeOffset(DateTime.Now.AddHours(8))); }