PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
New WINDEV, WEBDEV 23 feature!
  • Properties specific to the description of memcachedConnection variables
  • WLanguage functions that use the memcachedConnection type
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
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 modified by several WLanguage properties.
Note: See Declaring a variable for more details.
Example
// 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 the description of memcachedConnection variables

The following properties can be used to handle a connection to a memcached cache:
Property nameType usedEffect
PasswordCharacter stringConnection password (used when connecting to a memcached server with authentication).
NamespaceCharacter stringPrefix used for the keys stored on the server.
BinaryProtocolBooleanCommunication protocol between the memcached server and the client:
  • True (default value) if the memcached server is using a binary communication protocol,
  • False if the memcached server is using a text communication protocol.
Note: the binary communication protocol proposes better performances and additional features.
ServerArrayCharacteristics of memcached servers used.
Server[n]..NameCharacter stringServer name.
Server[n]..WeightIntegerServer weight.
Server[n]..PortIntegerServer port.
SupportCASBooleanSupport for CAS:
  • True if CAS supported.
  • False otherwise.
Note: CAS (Check And Set) is used to perform a data modification only if this data was not modified since its last reading.
ConnectionTimeOutIntegerMaximum time-out for connecting to the memcached server (expressed in milliseconds). Corresponds to 10 000 by default.
UserCharacter stringUser (used when connecting to a memcached server with authentication).

Note: These properties can be handled by using one of the following syntaxes:
  • <Variable Name>..<Property Name>
  • <Variable Name>.<Property Name>

WLanguage functions that use the memcachedConnection type

Versions 23 and later
MemcachedAdd
New in version 23
MemcachedAdd
MemcachedAdd
Adds a new key/value couple into the Memcached cache.
Versions 23 and later
MemcachedAddKeyGroup
New in version 23
MemcachedAddKeyGroup
MemcachedAddKeyGroup
Adds a new key/value couple into the Memcached cache on a group of servers.
Versions 23 and later
MemcachedAddPrefix
New in version 23
MemcachedAddPrefix
MemcachedAddPrefix
Adds a value at the start of existing value in the cache for the given key.
Versions 23 and later
MemcachedAddPrefixKeyGroup
MemcachedAddPrefixKeyGroup
Adds a value at the start of existing value in the cache for the given key on a group of servers.
Versions 23 and later
MemcachedAddSuffix
New in version 23
MemcachedAddSuffix
MemcachedAddSuffix
Adds a value at the end of existing value in the cache for the given key.
Versions 23 and later
MemcachedAddSuffixKeyGroup
MemcachedAddSuffixKeyGroup
Adds a value at the end of existing value in the cache for the given key on a group of servers.
Versions 23 and later
MemcachedAssign
New in version 23
MemcachedAssign
MemcachedAssign
Modifies a key/value couple in the Memcached cache:
  • If the key exists, the value is modified.
  • If the key does not exist, the key/value couple is added.
Versions 23 and later
MemcachedAssignKeyGroup
New in version 23
MemcachedAssignKeyGroup
MemcachedAssignKeyGroup
Modifies a key/value couple in the Memcached cache on a group of servers:
  • If the key exists, the value is modified.
  • If the key does not exist, the key/value couple is added.
Versions 23 and later
MemcachedCAS
New in version 23
MemcachedCAS
MemcachedCAS
Modifies the value of a key if this one was not modified.
Versions 23 and later
MemcachedCASKeyGroup
New in version 23
MemcachedCASKeyGroup
MemcachedCASKeyGroup
Modifies the value of a key on a group of servers if this one was not modified.
Versions 23 and later
MemcachedDecrement
New in version 23
MemcachedDecrement
MemcachedDecrement
Decrements the value associated with a key. The key is created if it does not exist.
Versions 23 and later
MemcachedDecrementKeyGroup
MemcachedDecrementKeyGroup
Decrements the value associated with a key on a group of servers.
Versions 23 and later
MemcachedDelete
New in version 23
MemcachedDelete
MemcachedDelete
Deletes a key from the Memcached cache.
Versions 23 and later
MemcachedDeleteKeyGroup
New in version 23
MemcachedDeleteKeyGroup
MemcachedDeleteKeyGroup
Deletes a key from the Memcached cache on a group of servers.
Versions 23 and later
MemcachedGetKeyGroup
New in version 23
MemcachedGetKeyGroup
MemcachedGetKeyGroup
Retrieves the values of keys stored on a group of Memcached servers.
Versions 23 and later
MemcachedIncrement
New in version 23
MemcachedIncrement
MemcachedIncrement
Increments the value associated with a key.
Versions 23 and later
MemcachedIncrementKeyGroup
MemcachedIncrementKeyGroup
Increments the value associated with a key on a group of servers.
Versions 23 and later
MemcachedModifieGroupeClé
MemcachedModifieGroupeClé
Modifies a key/value couple in the Memcached cache on a group of servers.
Versions 23 and later
MemcachedModify
New in version 23
MemcachedModify
MemcachedModify
Modifies a key/value couple in the Memcached cache.
Versions 23 and later
MemcacheGet
New in version 23
MemcacheGet
MemcacheGet
Retrieves the values of keys stored on a Memcached server.
Minimum required version
  • Version 23
This page is also available for…
Comments
Click [Add] to post a comment