DataCacheFactory Class

Provides methods to return DataCache objects that are mapped to a named cache. This class also enables programmatic configuration of the cache client.


Namespace:  Microsoft.ApplicationServer.Caching
Assembly:  Microsoft.ApplicationServer.Caching.Client (in Microsoft.ApplicationServer.Caching.Client.dll)

public sealed class DataCacheFactory : IDisposable

The DataCacheFactory type exposes the following members.

Public methodDataCacheFactory()()()()Used for configuring a cache client based on the application configuration file.
Public methodDataCacheFactory(DataCacheFactoryConfiguration)Used for programmatically configuring a cache client.

Public methodDisposeCloses the DataCacheFactory object and releases all associated resources.
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGetCacheReturns the cache client, an instance of the DataCache object.
Public methodGetDefaultCacheReturns the cache client corresponding to the default cache, an instance of the DataCache object.
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodToString (Inherited from Object.)

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.