I published a HOWTO on my site which explains how to do this:<br><br><a href="http://www.whalin.com/memcached/HOWTO.txt">http://www.whalin.com/memcached/HOWTO.txt</a><br><br>gw<br><br><div class="gmail_quote">On Jan 25, 2008 7:24 PM, Josh Rotenberg &lt;<a href="mailto:joshrotenberg@gmail.com">joshrotenberg@gmail.com</a>&gt; wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Be sure to keep in my Brian&#39;s other point about serialization and/or<br>compression. If you using either from either side (Java or php) you<br>
might have more issues.<br><br>Josh<br><br><br><br>On Jan 25, 2008, at 2:49 PM, &quot;Mark Magpayo&quot; &lt;<a href="mailto:mmagpayo@purevideo.com">mmagpayo@purevideo.com</a>&gt;<br>wrote:<br><div><div></div><div class="Wj3C7c">
<br>&gt;&gt; Mark Magpayo wrote:<br>&gt;&gt;&gt; For some reason any keys that I store with PHP, I cannot retrieve in<br>&gt;&gt;&gt; Java, and vice versa. &nbsp;I&#39;ve tried turning sanitizeKeys off in the<br>&gt; Java<br>&gt;&gt;&gt; client and still no luck.<br>
&gt;&gt;<br>&gt;&gt; The first hurdle is whether or not the Java and PHP clients use the<br>&gt; same<br>&gt;&gt; hashing algorithm. &nbsp;I don&#39;t know that they do.<br>&gt;&gt;<br>&gt;<br>&gt; Apparently the Java client uses the native String.hashCode() method as<br>
&gt; its default hashing algorithm. &nbsp;Digging into the source a bit more (as<br>&gt; well as the javadocs), there is a flag to set the hashing to an<br>&gt; algorithm that is compatible with other clients.<br>&gt;<br>&gt; Got it to work finally!<br>
&gt;<br>&gt; -Mark<br></div></div></blockquote></div><br><br clear="all"><br>-- <br>Greg Whalin