Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
steroberts89 committed Jun 25, 2014
1 parent 913fe4c commit fc7be5c
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,25 @@ UmbCacheDependencies

This project provides the ability to expire items within the .Net Cache when a content/media type is changed within umbraco.

THIS IS CURRENT BETA!!!
Usage is as follows:

HttpContext.Current.Cache.Add(
"key",
"value",
new UmbracoDependency(
new ContentDependency(1234),
new MediaDependency(124)
),
Cache.NoAbsoluteExpiration,
Cache.NoSlidingExpiration,
CacheItemPriority.Normal,
null
);
You can have as many ContentDependency/MediaDependencies as you wish.

THIS IS CURRENTLY BETA!!!


Currently you can provide cache dependency on a single content item id and a media item id.
Expand Down

0 comments on commit fc7be5c

Please sign in to comment.