0

After saving a String value into memcached using the Danga client, I attempted to get the entry using the Spy client. The two String values are not the same. The Danga client retrieves a string with an additional empty char prepended to the string, therefore violating the equality condition.

Danga
t,e,s,t,s,t,r,i,n,g

Spy
,t,e,s,t,s,t,r,i,n,g

I also attempted to save a serialized Map using the Danga client and get the Map using the Spy client. The Spy client is able to only get a String form of the Map. The string contains binary values.

Has anyone been able to get a Danga client-saved memcached entry correctly using the Spy client?

Community
  • 1
  • 1
onejigtwojig
  • 4,771
  • 9
  • 32
  • 35

1 Answers1

1

Yes, look at the transcoders for more information of how things get encoded on the network.

Specifically, I have WhalinTranscoder for the recent versions and WhalinV1Transcoder for dealing with older versions.

You can use a ConnectionFactoryBuilder to configure your transcoder instance to get different behaviors.

Dustin
  • 89,080
  • 21
  • 111
  • 133