Language

System.Data.Caching Namespace

[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]

The System.Data.Caching namespace provides access to an in-memory application cache application for developing scalable, high-performance applications. This namespace can be used to cache any common language runtime (CLR) object and provides access through simple APIs.

Classes

  Class Description
Public class Cache The primary object that is used by cache-enabled applications for storing and retrieving objects from the cache cluster. An instance of this object is referred to as the cache client.
Public class CacheErrorCode A static class used to store global error codes.
Public class CacheException Used for cache-related exceptions.
Public class CacheFactory Provides methods to return Cache objects that are mapped to a named cache. This class also enables programmatic configuration of the cache client.
Public class CacheItem Used to retrieve all information associated with the cached object in the cluster.
Public class CacheItemVersion Used to represent the version of a cached object.
Public class LogSink Used to specify an individual log sink.
Public class ServerEndPoint Used to specify an individual cache host when programmatically configuring the cache client.
Public class SessionStoreProvider A session storage provider that enables Web applications to store session-state data to a distributed cache system.
Public class Tag Represents an optional string-based identifier that you can associate with a cached object.

Structures

  Structure Description
Public structure LockHandle The structure used as a key to lock and unlock cached objects in a pessimistic concurency scenario.

Enumerations

  Enumeration Description
Public enumeration EvictionType Used to specify the eviction behavior of the cache.
Public enumeration SinkType Used to specify the type of log sink used to trace events on the cache client.