If you are storing a PHP object you should serialize it, and unserialize it on the way out. Otherwise PHP cannot understand what the object is.
$memcache->set($key, serialize($result)); $result = unserialize($memcache->get($key)); Adam Paras wrote: > Sorry I forgot to mention, result is of type mysql_result. > > Thanks > Paras > > On Apr 16, 11:35 pm, Paras <[email protected]> wrote: >> Hello Guys, >> >> I was trying to print a $result which was retrieved from the cache. >> Can anyone tell me how I can print the results ? >> >> eg: >> >> $result = $memcache->get($key); >> >> var_dump($result); >> >> does not work. Any ideas ? >> >> Thanks, >> Paras -- Adam Donnison, MySQL Web Developer Sun Microsystems Australia Pty Ltd Phone: x47031 Mobile: +61 4 1930 5414 Skype: ajdonnison Email: [email protected]
