Anil Kumar
Anil Kumar

Reputation: 389

How to unhash the object returned from get in memcached

After doing a set , when i try to get a object from memcached, it gives me a hashed value but i want the values inside the object that was set with set function call...

Anyone having idea how to solve it??

- The Object is instance of a class having two string attributes.

Upvotes: 1

Views: 200

Answers (1)

mikewied
mikewied

Reputation: 5333

Spymemcached deserializes and decompresses java objects when you get them back from memcached. If you get an Object back then you should be able to type cast it to the corresponding java object.

Upvotes: 1

Related Questions