Windows Server AppFabric version 1.0 only supported "cache-aside" programming pattern. As we have seen in Chapter 2, Getting Started with AppFabric Caching (under the recipe called Programming AppFabric Cache Client), with a cache-aside pattern, developers are responsible for doing custom implementations to ensure cache item availability as well as backend consistency in the face of cache updates.
The good news is that with version 1.1, Windows Server AppFabric has added support for Read Through as well as the Write Behind scenarios:
Read Through: If the client calls a
Get
onDataCache
object with thekey
that does not exist in the cache, it gets anull
reference. In a cache-aside pattern it is the responsibility of the calling client to then load the item in the cache so that it is available for the subsequent calls. However, with the new Read Through implementation for cache-miss scenarios the AppFabric cache transparently loads the missing item...