Click or drag to resize

Client Class

An interface of the client memcached protocol. This class is abstract for implementation of the Memcached client interface see TextClient for the text protocol version and BinaryClient for the binary protocol version.
Inheritance Hierarchy

Namespace:  MySql.Data.MySqlClient.Memcached
Assembly:  MySql.Data (in MySql.Data.dll) Version: 8.0.22
Syntax
public abstract class Client

The Client type exposes the following members.

Constructors
  NameDescription
Protected methodClient
Initializes a new instance of the Client class
Top
Methods
  NameDescription
Public methodAdd
Adds a new key/value pair with the given TimeSpan expiration.
Public methodAppend
Appens the data to the existing data for the associated key.
Public methodCas
Executes the Check-and-set Memcached operation.
Public methodClose
Closes the client connection.
Public methodDecrement
Decrements the value associated with a key by the given amount.
Public methodDelete
Removes they pair key/value given the specified key.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodFlushAll
Removes all entries from the storage, effectively invalidating the whole cache.
Public methodGet
Get the key/value pair associated with a given key.
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodStatic memberGetInstance
Factory method for creating instances of Client that implement a connection with the requested features. The connection object returned must be explicitely opened see method Open.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodIncrement
Increments the value associated with a key by the given amount.
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodOpen
Opens the client connection.
Public methodPrepend
Prepends the data to the existing data for the associated key.
Public methodReplace
Replaces the value associated with the given key with another value.
Public methodSet
Set the value of a given key.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Fields
  NameDescription
Protected fieldport
The port used by the connection.
Protected fieldserver
The server DNS or IP address used by the connection.
Protected fieldstream
The network stream used by the connecition.
Top
See Also