bigdata4u / spymemcached

Automatically exported from code.google.com/p/spymemcached
0 stars 0 forks source link

How to get more two values using get(key) API ? #311

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What version of the product are you using? On what operating system?

Server OS : Ubuntu 12.04.5 (64bit)
memcached version : 2.11.1 (added by dependency in pom.xml)

Client OS : Windows 7 (64bit)
Client JAVA version : 1.8.0_05

Tell me more...

I tried to run your sample code with JAVA.
[and some source code is...]
=========================================================================
MemcachedClient mc = new MemcachedClient(new BinaryConnectionFactory(),
                    AddrUtil.getAddresses("ip:port"));
Object obj = c.get("@@bbb.b01");
System.out.println(obj);
=========================================================================
[And followings are values in databases;]
+---------+------------+------------+------------+------+------+------+
| country | population | area_sq_km | drive_side | c3   | c4   | c5   |
+---------+------------+------------+------------+------+------+------+
| b01     | 102938     | 10         | NULL       |   10 |    6 |    0 |
+---------+------------+------------+------------+------+------+------+
[and... it is result from telnet.]
=========================================================================
get @@bbb.b01
VALUE @@bbb.b01 10 10
102938|10|
END
=========================================================================
[Finally, I expected result as telnet, but I got an error ...]
=========================================================================
2014-09-16 20:42:30.842 WARN 
net.spy.memcached.transcoders.SerializingTranscoder:  Failed to decompress data
java.util.zip.ZipException: Not in GZIP format
=========================================================================

How can I get various values using get(key) API?
Please let me know your information.
Thanks in advance.

Original issue reported on code.google.com by yongmin....@gmail.com on 16 Sep 2014 at 12:07