开发者

Are memcached entries saved by the Danga client compatible with the Spy client?

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 str开发者_开发知识库ing 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?


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜