Web.PublishedCache - IPublishedCaches creates contextual caches

This commit is contained in:
Stephan
2013-04-04 05:09:26 -02:00
parent b89951dd11
commit efee4d0c0c
3 changed files with 36 additions and 2 deletions

View File

@@ -25,5 +25,25 @@
/// Gets the media cache.
/// </summary>
public IPublishedMediaCache MediaCache { get; private set; }
/// <summary>
/// Creates a contextual content cache for a specified context.
/// </summary>
/// <param name="context">The context.</param>
/// <returns>A new contextual content cache for the specified context.</returns>
public ContextualPublishedContentCache CreateContextualContentCache(UmbracoContext context)
{
return new ContextualPublishedContentCache(ContentCache, context);
}
/// <summary>
/// Creates a contextual media cache for a specified context.
/// </summary>
/// <param name="context">The context.</param>
/// <returns>A new contextual media cache for the specified context.</returns>
public ContextualPublishedMediaCache CreateContextualMediaCache(UmbracoContext context)
{
return new ContextualPublishedMediaCache(MediaCache, context);
}
}
}