Just out of curiosity; what version of the server are you running?

This is always an issue with your client code.

1) if you telnet directly to memcached and run "get key1", does it return
abc or 123?

2) if abc, then you might have an ordering issue or invalid characters in
your keys (\n, space, etc)

3) if 123, probably the same glitch but might narrow down which code you
should look at on your end.

On Sat, 17 Feb 2018, Praveen wrote:

>
> What could be the reason for memcached to return wrong value?
>
>
> Ex: Key1 -> "abc"; key2 -> "123". 
>
> When I am trying to retrieve data for Key1, data returned is 123 instead of 
> abc. This happens in my local environment(application on Windows machine with
> memcached-win64) and also in dev server(docker container with alphinelinux).
>
>
> I am storing String value as Object in memcache in my Java application with 
> spymemcached client version 2.9.1. 
>
> In docker container I increased the size of memcached to 1024 MB from 512 MB 
> but no luck. This happens randomly and I am not sure when this happens. If I
> clear the complete cache then everything works fine.
>
>
> Did anyone face similar issue? If yes, how was this resolved? It would be of 
> great help if someone sheds some light on this.
>
>
> Thanks in Advance, 
>
> Praveen
>
> --
>
> ---
> You received this message because you are subscribed to the Google Groups 
> "memcached" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to memcached+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>
>

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"memcached" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to memcached+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to