Stefan Schackow: Program Manager Microsoft Corporation
Stefan Schackow: Program Manager Microsoft Corporation
Stefan Schackow
Program Manager
Microsoft Corporation
.NET Framework Caching
Namespace System.Caching
{
Windows
Azure
CacheProvider
Distributed
}
New 4.0 Cache Functionality
Namespace System.Caching
{
CacheItemPolicy
(expirations, priority,
callbacks)
Cache CacheItem
CacheIte
m CacheItem CacheDependency
(Sql, Key-based, File)
}
demo
Object Caching
New 4.0 Output Cache Functionality
Namespace System.Web.Caching
{
Default.aspx
Disk based In-memory
Foo.ascx
Windows
Azure
OutputCacheProvider
Distributed
}
demo
Output Caching
Core Versus Optional APIs
System.Web.Caching.Cache
Current plan is that it stays un-changed
Might enable "opting-in" to using an object
cache provider
Requires developing a “shim” that can re-route calls
to the new object cache provider layer
Currently the “shim” is only in the “idea phase”
ASP.NET output caching
Both page and control caching can opt-in to
using custom providers
By default both types of output caching
continue to use ASP.NET’s in-memory cache
Migrating From Existing APIs
System.Caching System.Web.Caching
Cache Cache
CacheDependency CacheDependency
SqlCacheDependency SqlCacheDependency
FileCacheDependency constructor parameter
CacheKeyCacheDependency constructor parameter
www.microsoftpdc.com
QA &