|
Memcached::casCompare and swap an item Description
public bool Memcached::cas(
stringintfloat $cas_token ,string $key ,mixed $value ,int $expiration = 0)
Memcached::cas performs a "check and set" operation,
so that the item will be stored only if no other client has updated it
since it was last fetched by this client. The check is done via the
Parameters
Return Values
Returns Examples
Example #1 Memcached::cas example
See Also
|