C# Class Whalin.Caching.MemcachedManager

Memcached管理操作类
Show file Open project: xianrendzw/LightFramework.Net

Public Methods

Method 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

Method Description
GetSection ( string sectionName ) : IMemcachedClientConfiguration

Method Details

CreateClient() public static method

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

CreateClient() public static method

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

CreateClient() public static method

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.
return MemcachedClient

Dispose() public static method

public static Dispose ( ) : void
return void

GetConnectedSocketHost() public static method

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

GetSocketHost() public static method

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

GetStats() public static method

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

GetStats() public static method

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