public ActionResult CachedView() { // This call will be cached automatically and the cache dependency keys will be added automatically to the output cache ExamplePageTypeModel ExamplePage = mExamplePageTypeRepo.GetExamplePages().FirstOrDefault(); // Add a custom cache key mOutputCacheDependencies.AddCacheItemDependency("CustomKey"); return(View(ExamplePage)); }