C# Class Enyim.Membase.MembaseClient

Client which can be used to connect to NothScale's Memcached and Enyim.Membase servers.
Inheritance: MemcachedClient
Mostra file Open project: xianrendzw/LightFramework.Net

Public Methods

Method Description
MembaseClient ( ) : System

Initializes a new instance of the T:Enyim.Membase.MembaseClient class using the default configuration and bucket.

The configuration is taken from the /configuration/membase section.

MembaseClient ( IMembaseClientConfiguration configuration ) : System

Initializes a new instance of the T:Enyim.Membase.MembaseClient class using a custom configuration provider.

MembaseClient ( IMembaseClientConfiguration configuration, string bucketName, string bucketPassword ) : System

Initializes a new instance of the T:Enyim.Membase.MembaseClient class using a custom configuration provider and the specified bucket name and password.

MembaseClient ( string bucketName, string bucketPassword ) : System

Initializes a new instance of the T:Enyim.Membase.MembaseClient class using the default configuration and the specified bucket.

The configuration is taken from the /configuration/membase section.

MembaseClient ( string sectionName, string bucketName, string bucketPassword ) : System

Initializes a new instance of the T:Enyim.Membase.MembaseClient class using the specified configuration section and the specified bucket.

Protected Methods

Method Description
PerformConcatenate ( ConcatenationMode mode, string key, ulong &cas, ArraySegment data ) : bool
PerformMutate ( MutationMode mode, string key, ulong defaultValue, ulong delta, uint expires, ulong &cas ) : ulong
PerformStore ( StoreMode mode, string key, object value, uint expires, ulong &cas ) : bool
PerformTryGet ( string key, ulong &cas, object &value ) : bool

Private Methods

Method Description
ExecuteWithRedirect ( IMemcachedNode startNode, ISingleItemOperation op ) : bool
MembaseClient ( IMembaseClientConfiguration configuration, string bucketName ) : System
MembaseClient ( string bucketName ) : System

Method Details

MembaseClient() public method

Initializes a new instance of the T:Enyim.Membase.MembaseClient class using the default configuration and bucket.
The configuration is taken from the /configuration/membase section.
public MembaseClient ( ) : System
return System

MembaseClient() public method

Initializes a new instance of the T:Enyim.Membase.MembaseClient class using a custom configuration provider.
public MembaseClient ( IMembaseClientConfiguration configuration ) : System
configuration IMembaseClientConfiguration The custom configuration provider.
return System

MembaseClient() public method

Initializes a new instance of the T:Enyim.Membase.MembaseClient class using a custom configuration provider and the specified bucket name and password.
public MembaseClient ( IMembaseClientConfiguration configuration, string bucketName, string bucketPassword ) : System
configuration IMembaseClientConfiguration The custom configuration provider.
bucketName string The name of the bucket this memcachedClient will connect to.
bucketPassword string The password of the bucket this memcachedClient will connect to.
return System

MembaseClient() public method

Initializes a new instance of the T:Enyim.Membase.MembaseClient class using the default configuration and the specified bucket.
The configuration is taken from the /configuration/membase section.
public MembaseClient ( string bucketName, string bucketPassword ) : System
bucketName string
bucketPassword string
return System

MembaseClient() public method

Initializes a new instance of the T:Enyim.Membase.MembaseClient class using the specified configuration section and the specified bucket.
public MembaseClient ( string sectionName, string bucketName, string bucketPassword ) : System
sectionName string The name of the configuration section to load.
bucketName string The name of the bucket this memcachedClient will connect to.
bucketPassword string The password of the bucket this memcachedClient will connect to.
return System

PerformConcatenate() protected method

protected PerformConcatenate ( ConcatenationMode mode, string key, ulong &cas, ArraySegment data ) : bool
mode ConcatenationMode
key string
cas ulong
data ArraySegment
return bool

PerformMutate() protected method

protected PerformMutate ( MutationMode mode, string key, ulong defaultValue, ulong delta, uint expires, ulong &cas ) : ulong
mode MutationMode
key string
defaultValue ulong
delta ulong
expires uint
cas ulong
return ulong

PerformStore() protected method

protected PerformStore ( StoreMode mode, string key, object value, uint expires, ulong &cas ) : bool
mode StoreMode
key string
value object
expires uint
cas ulong
return bool

PerformTryGet() protected method

protected PerformTryGet ( string key, ulong &cas, object &value ) : bool
key string
cas ulong
value object
return bool