regarding what to cache???

Dustin Sallings dustin at spy.net
Tue Sep 4 06:10:43 UTC 2007


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


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.danga.com/pipermail/memcached/attachments/20070903/274ac5d5/attachment.html


More information about the memcached mailing list