Hi All,<br><br>I have several questions regarding memcached.<br><br>The first question is that how do i append extra data at the end of the cache.<br><br>I have been using the function set to add items to the cache.<br><br>But some how i have been unable to use the function add to add items to the cache.<br><br>Here is my code in PHP<br><br><br><span style="font-style: italic; font-weight: bold;">class clsMem extends Memcache</span><br style="font-style: italic; font-weight: bold;"><span style="font-style: italic; font-weight: bold;"> {</span><br style="font-style: italic; font-weight: bold;"><span style="font-style: italic; font-weight: bold;"> </span><br style="font-style: italic; font-weight: bold;"><span style="font-style: italic; font-weight: bold;"> static private $m_objMem = NULL;</span><br style="font-style: italic; font-weight: bold;"><span
style="font-style: italic; font-weight: bold;"> </span><br style="font-style: italic; font-weight: bold;"><span style="font-style: italic; font-weight: bold;"> static function getMem()</span><br style="font-style: italic; font-weight: bold;"><span style="font-style: italic; font-weight: bold;"> {</span><br style="font-style: italic; font-weight: bold;"><span style="font-style: italic; font-weight: bold;"> </span><br style="font-style: italic; font-weight: bold;"><span style="font-style: italic; font-weight: bold;"> if (self::$m_objMem == NULL)</span><br style="font-style: italic; font-weight:
bold;"><span style="font-style: italic; font-weight: bold;"> </span><br style="font-style: italic; font-weight: bold;"><span style="font-style: italic; font-weight: bold;"> {</span><br style="font-style: italic; font-weight: bold;"><span style="font-style: italic; font-weight: bold;"> </span><br style="font-style: italic; font-weight: bold;"><span style="font-style: italic; font-weight: bold;"> self::$m_objMem = new Memcache;</span><br style="font-style: italic;
font-weight: bold;"><span style="font-style: italic; font-weight: bold;"> self::$m_objMem->connect('localhost', 11211) or die ("The memcached server");</span><br style="font-style: italic; font-weight: bold;"><span style="font-style: italic; font-weight: bold;"> </span><br style="font-style: italic; font-weight: bold;"><span style="font-style: italic; font-weight: bold;"> }</span><br style="font-style: italic; font-weight: bold;"><span style="font-style: italic; font-weight: bold;">
return self::$m_objMem;</span><br style="font-style: italic; font-weight: bold;"><span style="font-style: italic; font-weight: bold;"> }</span><br style="font-style: italic; font-weight: bold;"><span style="font-style: italic; font-weight: bold;"> }</span><br style="font-style: italic; font-weight: bold;"><br style="font-style: italic; font-weight: bold;"><span style="font-style: italic; font-weight: bold;"> </span><br style="font-style: italic; font-weight: bold;"><span style="font-style: italic; font-weight: bold;"> </span><br style="font-style: italic; font-weight: bold;"><span style="font-style: italic; font-weight: bold;">$URLarray = array( '1'=>array('yahoo.com','Yes'),</span><br style="font-style: italic; font-weight: bold;"><span style="font-style:
italic; font-weight: bold;"> '2'=>array('hotmail.com','Yes'),</span><br style="font-style: italic; font-weight: bold;"><span style="font-style: italic; font-weight: bold;"> '3'=>array('cnn.com', 'No'),</span><br style="font-style: italic; font-weight: bold;"><span style="font-style: italic; font-weight: bold;"> '4'=>array('bbc.co.uk','Yes'),</span><br style="font-style: italic; font-weight: bold;"><span style="font-style: italic; font-weight: bold;"> '5'=>array('pctool.com','Yes'),);</span><br style="font-style: italic; font-weight: bold;"><span style="font-style: italic; font-weight: bold;">
</span><br style="font-style: italic; font-weight: bold;"><span style="font-style: italic; font-weight: bold;">clsMem::getMem()->set("URL", serialize($URLarray), true, 600) or die ("Could not write to the cache"); </span> <br><br><br> Now if i have another item to add to the cache, how do i add it to the cache?<br><br>2. I would basically want to have a database of URLS in my main memory which i can quickly query, index, update, delete and modify.<br><br>Is this possible with memcache? <br><BR><BR><div style="font-family: arial;"> <div> <div> <div> <div> <div> <div> <div> <div> <div> <div> <div> <div> <div><strong>Junaid N. Sahibzada</strong></div> <div><strong>Cell # (+61) 404 998 494 </strong></div> <div><strong>Student MSc Internetworking, UTS, Australia</strong></div> <div><strong>Bachelor of Information Technology, NUST,
Pakistan</strong></div></div></div></div></div></div></div></div></div></div></div></div></div></div><p> 
                <hr size=1>Do you Yahoo!?<br>
Get on board. <a href="http://us.rd.yahoo.com/evt=40791/*http://advision.webevents.yahoo.com/mailbeta">You're invited</a> to try the new Yahoo! Mail.