Cross-Client Object Storage Issues
Greg Whalin
gwhalin at gmail.com
Sun Jan 27 19:13:04 UTC 2008
I published a HOWTO on my site which explains how to do this:
http://www.whalin.com/memcached/HOWTO.txt
gw
On Jan 25, 2008 7:24 PM, Josh Rotenberg <joshrotenberg at gmail.com> wrote:
> Be sure to keep in my Brian's other point about serialization and/or
> compression. If you using either from either side (Java or php) you
> might have more issues.
>
> Josh
>
>
>
> On Jan 25, 2008, at 2:49 PM, "Mark Magpayo" <mmagpayo at purevideo.com>
> wrote:
>
> >> 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
> > Java
> >>> client and still no luck.
> >>
> >> The first hurdle is whether or not the Java and PHP clients use the
> > same
> >> 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!
> >
> > -Mark
>
--
Greg Whalin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.danga.com/pipermail/memcached/attachments/20080127/9d7bb3c0/attachment.htm
More information about the memcached
mailing list