Méthode GetCache
GetCache (Chaîne, CacheConnectionOptions, Chaîne, CacheConnectionOptions)
Renvoie une instance de ICache pour cette application.
Déclaration
public static ICache GetCache(string cacheName, CacheConnectionOptions cacheConnectionOptions = null, string clientCacheName = null, CacheConnectionOptions clientCacheConnectionOptions = null)
Paramètres
Type | Nom | Description |
---|---|---|
Système.String | nom du cache | L'identifiant du ICache. |
CacheConnectionOptionsCacheConnectionOptions | options de connexion cache | CacheConnectionOptionsCacheConnectionOptions paramètres pour ICache connexion. |
Système.String | clientCacheName | L'identifiant du ClientCache. |
CacheConnectionOptionsCacheConnectionOptions | clientCacheConnectionOptionsclientCacheConnectionOptions | CacheConnectionOptionsCacheConnectionOptions paramètres pour la connexion ClientCache. |
Retours
Type | Description |
---|---|
ICache | Exemple de ICache. |
Remarques
Les clientCacheName
Le paramètre représente le nom d'enregistrement/configuration du cache client (cache L1). Selon la configuration, le ICache l'objet est créé InProc ou OutProc.
Exceptions
Type | État |
---|---|
System.ArgumentNullException |
|