import com.skyline.energy.provider.gwhalin.MemcachedCache;
import com.skyline.energy.provider.gwhalin.MemcachedManager;
public class MemcachedTest {
public static void main(String...args) throws Exception {
MemcachedManager mm = new MemcachedManager();
mm.setServers(new String[] {"127.0.0.1:11211"});
MemcachedCache cache = (MemcachedCache) mm.getCache("default");
DataObject obj = new DataObject();
System.out.println(obj);
System.out.println(obj.sMap.hashCode());
cache.add("123", obj, 1000L*60*10);
DataObject obj2 = (DataObject) cache.get("123");