Thanks for your reply. Yes I haven't enabled binary protocol in my application. This has been one of the reasons why I wasn't getting the response.
On Wednesday, 18 February 2015 13:26:57 UTC+5, Ryan McElroy wrote: > > I'm not an expert on libmemcached, but I took a quick look at the source > code of it and it looks like it defaults to the ascii protocol. The ascii > protocol only allows for printable characters in keys: > > At any rate, this would probably be a lot more apparent if you actually > checked the value of the call to memcached_set() -- I bet that's failing. > > To solve this problem, you can probably turn on the binary protocol or use > keys without control characters. Consult the libmemcached documentation on > how to turn on the binary protocol if that's the route you want to go. > > On Tue, Feb 17, 2015 at 10:58 PM, Muhammad Junaid Muzammil < > [email protected] <javascript:>> wrote: > >> Hello, >> >> I am using C memcached client in one of my applications. I am using >> different ASCII characters as a key for storing in memcached. However, when >> I retrieve data using memcached_get() it is always returning null. >> >> I have attached the source file for reference. >> >> Regards, >> Junaid. >> >> -- >> >> --- >> 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 [email protected] <javascript:>. >> 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 [email protected]. For more options, visit https://groups.google.com/d/optout.
