C# Class Whalin.Caching.MemcachedManager

Memcached管理操作类
Afficher le fichier Open project: xianrendzw/LightFramework.Net

Méthodes publiques

Méthode Description
CreateClient ( ) : MemcachedClient

Initializes a new MemcachedClient instance using the default configuration section (caching/whalinMemcached).

CreateClient ( IMemcachedClientConfiguration configuration ) : MemcachedClient

Initializes a new instance of the T:MemcachedClient using the specified configuration instance.

CreateClient ( string sectionName ) : MemcachedClient

Initializes a new MemcachedClient instance using the specified configuration section. This overload allows to create multiple MemcachedClients with different sockIOPool configurations.

Dispose ( ) : void
GetConnectedSocketHost ( ) : string[]

获取有效的服务器地址

GetSocketHost ( string key ) : string

获取当前缓存键值所存储在的服务器

GetStats ( ) : ArrayList

获取服务器端缓存的数据信息

GetStats ( ArrayList serverArrayList, Stats statsCommand, string param ) : ArrayList

获取服务器端缓存的数据信息

Private Methods

Méthode Description
GetSection ( string sectionName ) : IMemcachedClientConfiguration

Method Details

CreateClient() public static méthode

Initializes a new MemcachedClient instance using the default configuration section (caching/whalinMemcached).
public static CreateClient ( ) : MemcachedClient
Résultat MemcachedClient

CreateClient() public static méthode

Initializes a new instance of the T:MemcachedClient using the specified configuration instance.
public static CreateClient ( IMemcachedClientConfiguration configuration ) : MemcachedClient
configuration IMemcachedClientConfiguration The memcachedClient configuration.
Résultat MemcachedClient

CreateClient() public static méthode

Initializes a new MemcachedClient instance using the specified configuration section. This overload allows to create multiple MemcachedClients with different sockIOPool configurations.
public static CreateClient ( string sectionName ) : MemcachedClient
sectionName string The name of the configuration section to be used for configuring the behavior of the memcachedClient.
Résultat MemcachedClient

Dispose() public static méthode

public static Dispose ( ) : void
Résultat void

GetConnectedSocketHost() public static méthode

获取有效的服务器地址
public static GetConnectedSocketHost ( ) : string[]
Résultat string[]

GetSocketHost() public static méthode

获取当前缓存键值所存储在的服务器
public static GetSocketHost ( string key ) : string
key string 当前缓存键
Résultat string

GetStats() public static méthode

获取服务器端缓存的数据信息
public static GetStats ( ) : ArrayList
Résultat System.Collections.ArrayList

GetStats() public static méthode

获取服务器端缓存的数据信息
public static GetStats ( ArrayList serverArrayList, Stats statsCommand, string param ) : ArrayList
serverArrayList System.Collections.ArrayList 要访问的服务列表
statsCommand Stats
param string
Résultat System.Collections.ArrayList