方法一:不推荐使用,只会返回map中的key
Link link = ssdb.link;
resp = link.request("qpush", "q", "a");for(int i=1; i<resp.raw.size(); i+=2){
String s = new String(resp.raw.get(i));
System.out.println(s);
}
方法二:
Response resp = link.request("hgetall", "中国");resp.buildMap();Map<byte[], byte[]> map = resp.items;Set<Entry<byte[], byte[]>> set = map.entrySet();for(Entry<byte[], byte[]> e : set) {...}