C# Class Enyim.Membase.MembaseClient

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

Méthodes publiques

Méthode 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.

Méthodes protégées

Méthode 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

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

Method Details

MembaseClient() public méthode

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
Résultat System

MembaseClient() public méthode

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.
Résultat System

MembaseClient() public méthode

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.
Résultat System

MembaseClient() public méthode

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
Résultat System

MembaseClient() public méthode

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.
Résultat System

PerformConcatenate() protected méthode

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

PerformMutate() protected méthode

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
Résultat ulong

PerformStore() protected méthode

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

PerformTryGet() protected méthode

protected PerformTryGet ( string key, ulong &cas, object &value ) : bool
key string
cas ulong
value object
Résultat bool