Visitors to VTC.com will be able to view all introductory videos for each training course.
Free Trial Members will gain access to first three chapters for each training course.
Full Access Members have full access to VTC.com�s entire library of video tutorials.
Object Caching has been a part of ASP.NET since it first appeared. Now in ASP.NET 4 it has changed somewhat and so that makes it a target for the exam so watch for this kind of tucked into a question somewhere but also this is great for the real world. Now it's always been in ASP.NET and it was implemented by using the System.Web.Caching namespace and then you had the Cache Class out there. Now to use that meant that you had to set a reference in your application to the System.Web.DLL because that DLL file is where all of this was compiled up. Now Caching is an extremely popular option for all applications, not just web applications. Anything, any object that we can place into RAM, into a Random Access Memory and then serve that object or provide services off that object out of memory as oppose to spinning a disk to get it, obviously makes everything go a lot faster. So even non web applications were setting a reference to System.Web.DLL and using that Cache Class. Now developers have complained about this, it's somewhat to awkward to reference System.Web.DLL in non web apps and brought up some other confusions and so forth, so in ASP.NET 4 Microsoft has introduced as part of the .NET Framework Version 4 release that coincides with ASP.NET 4. Actually I should say ASP.NET is part of the .NET 4 Framework and, so that's how we're getting it. So actually ASP.NET's part of the framework, not the other way around. Alright. I'm glad I confused you there. Now ASP.NET 4 introduces a new Caching environment that is designed to be used by any application and really all they've all done, is they've isolated Caching out into it's own set of classes now. We got a new assembly for this, it is now the System.Runtime.Caching DLL that you'll set a reference to and we even got a new namespace and you can see it right there. System.Runtime.Caching and so now we can get really the same functionality that we've always had in ASP.NET but in a cleaner, more concise environment. Now the new namespace contains two core sets of classes and this is really neat here. You have some Abstract Types. Now for those of you, who kind of, a little rusty on your Object Orientated Programming stuff, an Abstract Type is a class that defines methods, properties and so forth but does not provide any implementation code for those. So you can basically derive or inherit from these Abstract Types and then you can use that functionality, you can see all the methods and so forth and some of them a lot of times, you may be required to use them, but anyway you can override, you can use them, you can do all kinds of things with them. Okay. So Abstract Types. Now the Base Class for those Abstract Types is Object Cache. Now a Concrete Object Cache Implementation is out there as well and this is where the classes are already written, all the functionalities and all the methods, you just simply instantiate an instance of the Concrete Object and boom, you've got functionality happening. Now this comes from the System.Runtime.Caching.Memory Cache Class is where all this happens from and this is modeled to be very similar to the old ASP.NET Cache. So if you've done a lot of work with the old ASP.NET Caching system, you're going to find a lot of similarities to the new Memory Cache Class. Now full Caching functionality is now available without any dependency on System.Web.DLL. Now watch this statement right here, this could be the key for one of these little twists or turns or you know little ruffles that they'll throw into a question somewhere, you don't have to use the System.Web.DLL reference anymore to get Caching, you can get it now in this generic Object Caching functionality that the .NET 4 Framework brings to us and brings to ASP.NET 4.
| Course: | Designing and Developing ASP.NET 4 Web Apps (Exam 70-519) |
| Author: | Mark Long |
| SKU: | 34292 |
| ISBN: | 978-1-61866-029-9 |
| Release Date: | 2011-12-31 |
| Duration: | 8.5 hrs / 108 lessons |
| Work Files: |
Yes |
| Captions: | No |
| Compatibility: |
Vista/XP/2000, OS X, Linux QuickTime 7, Flash 8 |