apc_cas
Updates an old value with a new value
&reftitle.description;
boolapc_cas
stringkey
intold
intnew
apc_cas updates an already existing integer value if the
old parameter matches the currently stored value
with the value of the new parameter.
&reftitle.parameters;
key
The key of the value being updated.
old
The old value (the value currently stored).
new
The new value to update to.
&reftitle.returnvalues;
&return.success;
&reftitle.examples;
apc_cas example
]]>
&example.outputs.similar;
&reftitle.seealso;
apc_dec
apc_store