Cross-Client Object Storage Issues
mmagpayo at purevideo.com
Fri Jan 25 22:49:16 UTC 2008
> Mark Magpayo wrote:
> > For some reason any keys that I store with PHP, I cannot retrieve in
> > Java, and vice versa. I've tried turning sanitizeKeys off in the
> > client and still no luck.
> The first hurdle is whether or not the Java and PHP clients use the
> hashing algorithm. I don't know that they do.
Apparently the Java client uses the native String.hashCode() method as
its default hashing algorithm. Digging into the source a bit more (as
well as the javadocs), there is a flag to set the hashing to an
algorithm that is compatible with other clients.
Got it to work finally!
More information about the memcached