Course info
Apr 27, 2012
1h 10m

The Caching Application Block is part of the Microsoft Enterprise Library. This block enables you to add caching to your applications that can be configured in a variety of ways. In this course we will learn the basics of the Caching Application Block, and see how to configure it to cache data with different expiration policies. We will also see how we can store that data even when our application exits through the use of backing storage. If you are considering adding caching to your application to improve performance, but don't know where to start, this block can help you get started and understand basic caching scenarios.

About the author
About the author

John Sonmez is the founder of Simple Programmer (, where he tirelessly pursues his vision of transforming complex issues into simple solutions

More from the author
Beginning Lua
2h 50m
2 Dec 2013
Beginning HTML 5 Game Development With Quintus
2h 52m
25 Oct 2013
Beginning HTML5 Apps For Firefox OS
2h 20m
17 Oct 2013
More courses by John Sonmez
Section Introduction Transcripts
Section Introduction Transcripts

Block Overview and Configuration
Hi, this is John Sonmez from Pluralsight, and in this module we are going to go over the caching application block for the Mark Soft Enterprise Library and we're going to see how to configure it. So the caching block is a very unusual block that you can use to cache data that can really help to speed up your application. Many applications performance can be increased just by adding caching. So it's really important to know about caching and fortunately the enterprise library caching application block makes it pretty easy to add a cache into your application. So in this module we're going to look at what caching is in general. We're going to go over how the enterprise library does caching and the components of the caching block. And then we're going to talk about some considerations for caching in general and using the enterprise library block. And then finally we're going to go over the configuration and see how to configure the block so that we can use it in the upcoming modules.

Simple Caching
Hi. This is John Sonmez from Pluralsight. And in this module, we are going to be looking at some simple caching scenarios with the Enterprise Library Caching Application Block. We're going to start off by just setting up a basic caching just to see how we can cache some data and get that data out of the cache. Then we're going to make things a little bit more complex as we start using some policies. So we're going to see how we can set policies on the data that we cache to make that data expire based on that policy. Then we'll go into using some isolated storage to be able to serialize that data or to persist that data when we shut down our application, we'll see how we can start up our applications and still get that data back out of the cache and we'll go ahead and encrypt that data so we'll explore how you can secure that data once you put it on disc. We'll take a look at database storage as an option to see how we can store our cached when we persist it into a database instead of to the isolated storage. And then finally, we'll see how we can remove things from our cache and flush our cache.

Advanced Caching
Hi. This is John Sonmez from Pluralsight, and in this module on the Caching Application Block, we're going to get into some more of the advanced topics in caching. Up to now, we've covered most of the basic examples of caching and most of the basic things that you'll probably do with the caching block perhaps 90 percent of the time. But in this module, we're going to look at some more specific advanced things like some of the dependencies or policies that we haven't covered, a FileDependency and ExtendedTimeFormat policy. We're going to look at how we can actually refresh the cache automatically when an item expires. We're also going to see how we can customize an expiration policy to make our own policy for the caching block. And then finally, we're going to discuss some of the alternatives that you have to the caching block. The caching block is one of those blocks that has some duplication because there are some features built in to. NET that support caching, especially in ASP. NET and there is a product called AppFabric which we'll briefly discuss just so you have all the information about caching so that you know that you're making the right decision in choosing the caching block or another alternative.