Memcache::add
Add an item to the server
&reftitle.description;
boolMemcache::add
stringkey
mixedvar
intflag
intexpire
Memcache::add stores variable
var with key only if such
key doesn't exist at the server yet.
Also you can use memcache_add function.
&reftitle.parameters;
key
var
flag
expire
&reftitle.returnvalues;
&return.success;
Returns &false; if such key already exist. For the rest
Memcache::add behaves similarly to
Memcache::set.
&reftitle.examples;
Memcache::add example
add('var_key', 'test variable', false, 30);
?>
]]>
&reftitle.seealso;
Memcache::set
Memcache::replace