Memcache and Rails - Storing String as values.

Hello all,

I have been using Memcache with my rails application to store certain
key value pair.... I am using Dalli gem for the same... So Here's what i
do from console:

require 'dalli'
dc ='remoteserver:11211')

dc.set('example_link', "")
=> true

value = dc.get('example_link')
=> ""

Everything looks good. However if i telnet to memcache and run this

get example_link
VALUE example_link 1 33

Instead of returning the string, it returns some random garbage
prepended and appended to value (I, :ET and so on)

Anyone can guide on whats going on here?


I think its because of marshalling.U need to pass raw=true or only true