Method GetCache
GetCache(String, CacheConnectionOptions, String, CacheConnectionOptions)
Returns an instance of ICache for this application.
Declaration
public static ICache GetCache(string cacheName, CacheConnectionOptions cacheConnectionOptions = null, string clientCacheName = null, CacheConnectionOptions clientCacheConnectionOptions = null)
Parameters
Type | Name | Description |
---|---|---|
System.String | cacheName | The identifier for the ICache. |
CacheConnectionOptions | cacheConnectionOptions | CacheConnectionOptions parameters for ICache connection. |
System.String | clientCacheName | The identifier for the ClientCache. |
CacheConnectionOptions | clientCacheConnectionOptions | CacheConnectionOptions parameters for ClientCache connection. |
Returns
Type | Description |
---|---|
ICache | Instance of ICache. |
Remarks
The clientCacheName
parameter represents the registration/config name of the Client Cache (L1 Cache).
Depending upon the configuration the ICache object is
created inproc or outproc.