<HTML><BODY style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; "><BR><DIV><DIV>On Sep 3, 2007, at 23:05, Ajinkya Nahar wrote:</DIV><BR class="Apple-interchange-newline"><BLOCKQUOTE type="cite"><SPAN class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><DIV class="Section1"><P class="MsoNormal"><FONT size="2" face="Arial"><SPAN style="font-size:10.0pt; font-family:Arial; font-size: 13.3333px; "><SPAN class="Apple-style-span" style="font-family: Arial; font-size: 13.3333px; ">E.g.</SPAN><O:P style="font-family: Arial; font-size: 13.3333px; "></O:P></SPAN></FONT></P><P class="MsoNormal" style="text-indent:.5in;text-autospace:none; font-family: Times New Roman; font-size: 16px; text-indent: 48px; "><FONT size="2" color="#7f9fbf" face="Courier New"><SPAN style="font-size:11.0pt;font-family: " courier="" new";color:#7f9fbf;="" font-size:="" 14.6667px;="" text-indent:="" 48px;=""><SPAN class="Apple-style-span" style="color: rgb(127, 159, 191); font-family: Courier New; font-size: 14.6667px; text-indent: 48px; ">$query</SPAN></SPAN></FONT><FONT size="2" color="black" face="Courier New"><SPAN style="font-size:11.0pt;font-family:" courier="" new";="" color:black;="" font-size:="" 14.6667px;="" text-indent:="" 48px;=""><SPAN class="Apple-style-span" style="font-family: Courier New; font-size: 14.6667px; text-indent: 48px; "> = “</SPAN></SPAN></FONT><FONT size="2" color="#2a00ff" face="Courier New"><SPAN style="font-size:11.0pt;font-family:" courier="" new";="" color:#2a00ff;="" font-size:="" 14.6667px;="" text-indent:="" 48px;=""><SPAN class="Apple-style-span" style="color: rgb(42, 0, 255); font-family: Courier New; font-size: 14.6667px; text-indent: 48px; ">SELECT * from ……”;</SPAN></SPAN></FONT><FONT size="2" face="Courier New"><SPAN style="font-size:11.0pt;font-family:" courier="" new";="" font-size:="" 14.6667px;="" text-indent:="" 48px;=""><O:P style="font-family: Courier New; font-size: 14.6667px; text-indent: 48px; "></O:P></SPAN></FONT></P><P class="MsoNormal"><FONT size="2" color="black" face="Courier New"><SPAN style="font-size:11.0pt;font-family:" courier="" new";color:black;="" font-size:="" 14.6667px;=""><SPAN class="Apple-style-span" style="font-family: Courier New; font-size: 14.6667px; "> </SPAN></SPAN></FONT><FONT size="2" color="#7f9fbf" face="Courier New"><SPAN style="font-size:11.0pt; font-family:" courier="" new";color:#7f9fbf;="" font-size:="" 14.6667px;=""><SPAN class="Apple-style-span" style="color: rgb(127, 159, 191); font-family: Courier New; font-size: 14.6667px; ">$result</SPAN></SPAN></FONT><FONT size="2" color="black" face="Courier New"><SPAN style="font-size:11.0pt;font-family:" courier="" new";="" color:black;="" font-size:="" 14.6667px;=""><SPAN class="Apple-style-span" style="font-family: Courier New; font-size: 14.6667px; "> = </SPAN></SPAN></FONT><FONT size="2" color="#7f7f9f" face="Courier New"><SPAN style="font-size:11.0pt;font-family:" courier="" new";color:#7f7f9f;="" font-size:="" 14.6667px;=""><SPAN class="Apple-style-span" style="color: rgb(127, 127, 159); font-family: Courier New; font-size: 14.6667px; ">mysql_query</SPAN></SPAN></FONT><FONT size="2" color="black" face="Courier New"><SPAN style="font-size:11.0pt;font-family: " courier="" new";color:black;="" font-size:="" 14.6667px;=""><SPAN class="Apple-style-span" style="font-family: Courier New; font-size: 14.6667px; ">(</SPAN></SPAN></FONT><FONT size="2" color="#7f9fbf" face="Courier New"><SPAN style="font-size:11.0pt;font-family:" courier="" new";="" color:#7f9fbf;="" font-size:="" 14.6667px;=""><SPAN class="Apple-style-span" style="color: rgb(127, 159, 191); font-family: Courier New; font-size: 14.6667px; ">$query</SPAN></SPAN></FONT><FONT size="2" color="black" face="Courier New"><SPAN style="font-size:11.0pt;font-family:" courier="" new";color:black;="" font-size:="" 14.6667px;=""><SPAN class="Apple-style-span" style="font-family: Courier New; font-size: 14.6667px; ">);</SPAN><O:P style="font-family: Courier New; font-size: 14.6667px; "></O:P></SPAN></FONT></P><P class="MsoNormal"><FONT size="2" color="black" face="Courier New"><SPAN style="font-size:11.0pt;font-family:" courier="" new";color:black;="" font-size:="" 14.6667px;=""><SPAN class="Apple-style-span" style="font-family: Courier New; font-size: 14.6667px; "> $memcache_obj->set($key, $result);</SPAN><O:P style="font-family: Courier New; font-size: 14.6667px; "></O:P></SPAN></FONT></P><P class="MsoNormal"><FONT size="2" color="black" face="Courier New"><SPAN style="font-size:11.0pt;font-family:" courier="" new";color:black;="" font-size:="" 14.6667px;=""><O:P style="font-family: Courier New; font-size: 14.6667px; "><SPAN class="Apple-style-span" style="font-family: Courier New; font-size: 14.6667px; "> </SPAN></O:P></SPAN></FONT></P><P class="MsoNormal"><FONT size="2" color="black" face="Courier New"><SPAN style="font-size:11.0pt;font-family:" courier="" new";color:black;="" font-size:="" 14.6667px;=""><SPAN class="Apple-style-span" style="font-family: Courier New; font-size: 14.6667px; ">Will this work??</SPAN><O:P style="font-family: Courier New; font-size: 14.6667px; "></O:P></SPAN></FONT></P><P class="MsoNormal"><FONT size="2" color="black" face="Courier New"><SPAN style="font-size:11.0pt;font-family:" courier="" new";color:black;="" font-size:="" 14.6667px;=""><O:P style="font-family: Courier New; font-size: 14.6667px; "><SPAN class="Apple-style-span" style="font-family: Courier New; font-size: 14.6667px; "> </SPAN></O:P></SPAN></FONT></P><P class="MsoNormal"><FONT size="2" color="black" face="Courier New"><SPAN style="font-size:11.0pt;font-family:" courier="" new";color:black;="" font-size:="" 14.6667px;=""><SPAN class="Apple-style-span" style="font-family: Courier New; font-size: 14.6667px; ">Please let me know your comments.</SPAN></SPAN></FONT></P></DIV></SPAN></BLOCKQUOTE><BR></DIV><DIV><SPAN class="Apple-tab-span" style="white-space:pre">        </SPAN>I don't know PHP, so I don't know what $result is, but I'd guess that no, you couldn't cache that.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV><SPAN class="Apple-tab-span" style="white-space:pre">        </SPAN>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.</DIV><BR><DIV> <SPAN class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><DIV>-- </DIV><DIV>Dustin Sallings</DIV><BR class="Apple-interchange-newline"></SPAN> </DIV><BR></BODY></HTML>