|
|
|
|
- Properties specific to memcachedConnection variables
- WLanguage functions that use the memcachedConnection type
memcachedConnection (Type of variable) In french: memcachedConnexion
The memcachedConnection type is used to define the characteristics of a connection to a Memcached server. The characteristics of this connection can be defined and changed using different WLanguage properties. Remark: For more details on the declaration of this type of variable and the use of WLanguage properties, see Declaring a variable.
// Declare a connection via the memcachedConnection type memConnection is memcachedConnection memConnection.Server[1].Name = "MyServer" memConnection.SupportCAS = True memConnection.BinaryProtocol = True // Use the connection Trace(MemcachedGet(memConnection, "mykey"))
Remarks Properties specific to memcachedConnection variables The following properties can be used to handle a connection to a memcached cache: | | | | Property name | Type used | Effect |
---|
Password | Character string | Connection password (used when connecting to a memcached server with authentication). | Namespace | Character string | Prefix used for the keys stored on the server. | BinaryProtocol | Boolean | Communication protocol between the memcached server and the client: - True (default value) if the memcached server uses a binary communication protocol,
- False if the memcached server uses a text communication protocol.
Remark: the binary communication protocol proposes better performance and additional features. | Server | | Array | Characteristics of memcached servers used. | | Server[n].Name | Character string | Server name. | | Server[n].Weight | Integer | Server weight. | | Server[n].Port | Integer | Server port. | SupportCAS | Boolean | Support for CAS: - True if CAS supported.
- False otherwise.
Remark: CAS (Check And Set) is used to perform a data modification only if this data was not modified since it was last read. | ConnectionTimeout | Integer | Maximum timeout for connecting to the memcached server (expressed in milliseconds). Corresponds to 10 000 by default. | User | Character string | User (used when connecting to a memcached server with authentication). |
WLanguage functions that use the memcachedConnection type
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|