<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.3059" name=GENERATOR></HEAD>
<BODY text=#000000 bgColor=#ffffff>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=437131217-09042007>You could also serialize everything in JSON. There's a
library for every major language, I think. You'd have to change your application
a little bit serializing everything before storing it. Also, you'd have to
restart all your memcache instances. Besides that, seems like a nice
solution.</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=437131217-09042007></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=437131217-09042007>Regards,</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=437131217-09042007>Mauro.</SPAN></FONT></DIV><BR>
<BLOCKQUOTE
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px">
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> memcached-bounces@lists.danga.com
[mailto:memcached-bounces@lists.danga.com] <B>On Behalf Of </B>Steven
Grimm<BR><B>Sent:</B> Monday, April 09, 2007 2:05 PM<BR><B>To:</B> Greg
Whalin<BR><B>Cc:</B> memcached@lists.danga.com<BR><B>Subject:</B> Re: Basic
help required for the JAVA API<BR></FONT><BR></DIV>
<DIV></DIV>If he only has one server, how can it be the hashing? All the keys
will resolve to that one server no matter what the hash algorithm is.<BR><BR>I
think it's the serialization. Java's deserializer has no idea what to make of
PHP's serialization format.<BR><BR>As I see it you have two options, if that's
indeed the problem: you can write your own serializer in PHP to serialize to
some other format (probably not Java's native format since that would be a
real pain to get right in PHP) or you can parse the PHP format in Java. PHP's
serialization format is pretty simple so that'd be the route I'd take. You may
be able to make some use of the PHP-in-Java implementation, Quercus:<BR><BR><A
class=moz-txt-link-freetext
href="http://quercus.caucho.com/">http://quercus.caucho.com/</A><BR><BR>It has
code to deal with PHP-serialized objects, but I'm not sure what it ends up
building on the Java side.<BR><BR>-Steve<BR><BR></BLOCKQUOTE></BODY></HTML>