-
Book Overview & Buying
-
Table Of Contents
Microsoft Windows Server AppFabric Cookbook
We saw in the previous recipe that regions in Windows Server AppFabric cache offer a mechanism for organizing a set of objects on a particular cache host. Tags add another layer of association on top of regions.
In a nutshell, tags are (one or more) strings associated with a cache item. At the API level, tags can only be associated with cache items in a particular region. This implies that tags are only used on cache items that are explicitly stored in a region. The following diagram shows how tags are associated with cache items within a named region:

In this recipe, we will see how to associate tags with cached items as well as how to retrieve cached items based on tags.
The requirements for getting started with this recipe are exactly the same as those of the previous recipe titled Using regions in cache. You will need to do the following:
1. Launch Visual Studio 2010 (using administrative privileges).
2. Create an empty C# console project.
3. Add references...
Change the font size
Change margin width
Change background colour