Share via


DataCacheFactory Constructor

 

Used for configuring the type of cache client that is returned by the GetCache method.

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

Overload List

Name Description
System_CAPS_pubmethod DataCacheFactory()

Used for configuring a cache client based on the application configuration file.

System_CAPS_pubmethod DataCacheFactory(DataCacheFactoryConfiguration)

Used for programmatically configuring a cache client.

Remarks

Before working with the cache, you must instantiate the DataCacheFactory class. If no parameters are provided to the DataCacheFactory class constructor, the cache client configuration parameters come from the application configuration file. If configuration settings are passed to the DataCacheFactory class constructor, those configuration settings are used for all cache clients obtained from that DataCacheFactory object. Configuration settings passed to the constructor override settings specified in the application configuration file.

See Also

DataCacheFactory Class
Microsoft.ApplicationServer.Caching Namespace

Return to top