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)
Inheritance Hierarchy
System.Object
Microsoft.ApplicationServer.Caching.DataCacheFactory
Syntax
public sealed class DataCacheFactory : IDisposable
public ref class DataCacheFactory sealed : IDisposable
[<Sealed>]
type DataCacheFactory =
class
interface IDisposable
end
Public NotInheritable Class DataCacheFactory
Implements IDisposable
Constructors
Name | Description | |
---|---|---|
DataCacheFactory() | Used for configuring a cache client based on the application configuration file. |
|
DataCacheFactory(DataCacheFactoryConfiguration) | Used for programmatically configuring a cache client. |
Methods
Name | Description | |
---|---|---|
Dispose() | Closes the DataCacheFactory object and releases all associated resources. |
|
Equals(Object) | (Inherited from Object.) |
|
GetCache(String) | Returns the cache client, an instance of the DataCache object. |
|
GetDefaultCache() | Returns the cache client corresponding to the default cache, an instance of the DataCache object. |
|
GetHashCode() | (Inherited from Object.) |
|
GetType() | (Inherited from Object.) |
|
ToString() | (Inherited from Object.) |
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
See Also
Microsoft.ApplicationServer.Caching Namespace
Return to top