# Ruby memcached serialisation logstash

**URL:** <https://www.ruby-forum.com/t/ruby-memcached-serialisation-logstash/266579>\
**Category:** Uncategorized\
**Created:** [October 15, 2024, 6:12pm UTC](https://www.ruby-forum.com/t/ruby-memcached-serialisation-logstash/266579 "2024-10-15T18:12:24Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![satpot27](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/c89c15/32.png) [@satpot27](https://www.ruby-forum.com/u/satpot27)\
**Post date:** [October 15, 2024, 6:12pm UTC](https://www.ruby-forum.com/t/ruby-memcached-serialisation-logstash/266579/1 "2024-10-15T18:12:24Z")

</div>

Hi,  
I’m currently building a logstash pipeline with the memcached plugin where i set my data to memcach however i notice that when i retrive my data from telnet it always comes out serialised. I wasn’t sure if it was a logstash thing so i went ahead and made a super basic ruby script to test and noticed that its ruby that seems to be serialising the data even though it’s string and I’m not sure how to stop it:  
dc = Dalli::Client.new(“localhost:11211”)  
input = “randomstuff”  
dc.set(input, input)

where i expect this when i telnet memcache for the value:  
get randomstuff  
VALUE randomstuff 1 21  
randomstuff

but instead i get :  
get randomstuff  
VALUE randomstuff 1 21  
I"randomstuff:ET
