Previous Page
Next Page

Chapter 14 Quick Reference

To

Do This

Access the data cache

The data cache is available as

  1. the Cache property in the page

  2. the Cache property in the current HttpContext

Insert an item in the cache

Use the indexer notation to add an object and a value to the cache

Insert an item in the cache with a dependency

Create a CacheDependency object and add the object to the cache using the overloaded insert method

Insert an item in the cache with an expiration time

Create a DateTime object and add the object to the cache using the overloaded insert method

Delete an item from the cache

Call the cache's Remove method

Be notified that an item is being removed from the cache

Include a callback delegate when inserting an item in the cache


Previous Page
Next Page