NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

Cache APIs

The ASP+ cache APIs provide scalable caching services to Web applications. While basic cache settings are simple to use, these APIs also provide advanced semantics if you need to optimize your applications for performance and scalability.

You can set cached items to expire at an absolute time or at a time relative to the time they were last accessed. The cache can also track dependencies on external files or directories and other cache keys. For example, if your application uses data from an XML file source, that data could be cached. If the XML file changes, the cached data would be invalidated and your application could reconstruct it. The new data would then be cached anew.

The cache also provides a mechanism for discarding items if the server is low on memory. You can design your applications to prioritize data when items are added to the cache.

The cache has no information about the contents of the items it contains. It merely holds a reference to those objects and provides means to track their dependencies and set expiration policies.

See Also

ASP+ Caching Features | ASP+ Output Cache | Optimizing ASP+ Applications | System.Web.Cache Namespace | Cache Class | CacheDependency Class