Home | Sign in | English EN
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WindowsLinuxPHPWEBDEV - Browser code
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Stored procedures
Modifies the value of a key on a group of servers if this one was not modified.
MemcachedCASKeyGroup(memConnection, "MyApp", "key", "value")
<Result> = MemcachedCASKeyGroup(<Connection> , <Group> , <Key> , <Value> , <Cas> [, <Expiration> [, <Additional value>]])
<Result>: Boolean
  • True if the operation was performed,
  • False if an error occurred. To find out the error details, use ErrorInfo associated with the errMessage constant.
<Connection>: memcachedConnection variable
Name of memcachedConnection variable corresponding to the connection to the Memcached cache.
<Group>: Character string (with quotes)
Key section used to choose the server that will be used.
<Key>: Character string (with quotes)
Rest of key to modify.
<Value>: Character string (with quotes) or buffer
Value to store.
<Cas>: Integer
Value of previous version.
<Expiration>: Integer or optional duration
Duration during which the key is stored in the cache. This duration is expressed in seconds. This duration can correspond to:
  • an integer corresponding to the number of seconds,
  • a Duration variable.
  • the direct indication of duration ('10s' for example).
This duration is set to 0 by default. In this case, the duration is unlimited: if there is not enough memory, the oldest keys are deleted.
<Additional value>: Optional integer
Used to store an additional value associated with the Key/Value couple. This parameter can be used to describe the key or the value for example.
To use this function, CAS must be supported by the Memcached server (..SupportCAS property of memcachedConnection variable set to True). CAS (Check And Set) is used to perform a data modification only if this data was not modified since its last reading.
Component : wd260big.dll
Minimum version required
  • Version 23
This page is also available for…
Click [Add] to post a comment