SharePoint Web Part Caching

The basic concept of data caching is consistent across SharePoint and ASP.NET. However, SharePoint contains its own implementation of a cache that can be addressed programmatically using members of the cache enumeration type, which are listed in Table 7-2.

Table 7-2. Cache Enumeration Values

Member

Description

CacheObject

Stores cached property values using the ASP.NET Cache object.

Database

Stores cached property values in the SharePoint database.

None

No property values are cached.

These member values show that you can programmatically target either the ASP.NET cache infrastructure or the SharePoint database for caching values. There is no direct equivalent for such functionality in ASP.NET. The different state providers in ...

Get Programming Excel® Services now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.