Hi,<br>
<br>
I am doing some experiments with memcached, hoping to make my web server faster, however I am wondering if we can use memcached together with DBIx::Class::Resultset ?<br>
<br>
My code is like this:<br>
..<br>
..<br>
&nbsp;&nbsp;&nbsp; unless ( $data = $c-&gt;cache-&gt;get($cache_key) ) <br>
&nbsp;&nbsp;&nbsp; {<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $date =<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $c-&gt;master-&gt;resultset('table_name')-&gt;search( <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \%search_condition,<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ) -&gt;first;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $c-&gt;cache-&gt;set( $cache_key, $agent );<br>
&nbsp;&nbsp;&nbsp; }<br>
..<br>
..<br>
<br>
When it bypasses the connection to the database and gets the value from the cache, this error message appears:<br>
<br>
Couldn't render template "undef error - Can't call method "source" on an undefined value at /usr/lib/perl5/site_perl/5.8/DBIx/Class/ResultSourceHandle.pm line 64.<br>
<br>
I am assuming it has something to do with the database connection variables and stuff, but I am not really sure. Has anyone done any similar experiment ?<br>
<br>
Sindharta<br>
<br>
<br>

<div style="line-height: 0; width: 0; height: 5px; clear: both;">&nbsp;</div>
<p>&#32;



<hr size=1><a href=http://pr.mail.yahoo.co.jp/toolbar/ target="new">Easy + Joy + Powerful = Yahoo! Bookmarks x Toolbar</a><br>