On Sep 3, 2007, at 23:05, Ajinkya Nahar wrote:

E.g.

$query = “SELECT * from ……”;

     $result = mysql_query($query);

     $memcache_obj->set($key, $result);



Will this work??



Please let me know your comments.

I don't know PHP, so I don't know what $result is, but I'd guess that no, you couldn't cache that.

It's also probably not very desirable. I'm guessing that you're doing something with that result set -- transforming it into some object or representation suitable for display. That's the thing you want to cache.

--
Dustin Sallings


Reply via email to