|
Memcached::casCompare and swap an item Description
public bool Memcached::cas
( float
$cas_token
, string $key
, mixed $value
[, int $expiration
] )
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
<?php See Also
|