|
|
|
|
|
- Properties specific to memcachedConnection variables
- WLanguage functions that use the memcachedConnection type
memcachedConnection (Variable type) In french: memcachedConnexion
The memcachedConnection type is used to define the characteristics of a connection to a Memcached server. You can define and change the characteristics of this connection using different WLanguage properties. Note: For more details on the declaration of this type of variable and the use of WLanguage properties, see Declaring a variable.
memConnexion is memcachedConnection
memConnexion.Server[1].Name = "MonServeur"
memConnexion.SupportCAS = True
memConnexion.BinaryProtocol = True
Trace(MemcachedGet(memConnexion, "maclé"))
Properties 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 or Secret string | Connection password (used when connecting to a memcached server with authentication).
New in version 2025Secret strings: If you use the secret string vault, the type of secret string used for this parameter must be "ANSI or Unicode string". To learn more about secret strings and how to use the vault, see Secret string vault. | 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.
Note: the binary communication protocol offers 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.
Note: CAS (Check And Set) allows you to perform a data modification operation only if the data has not been 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). |
Remarks WLanguage functions that use the memcachedConnection type
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|