manager.initialize(serverlist, false);
// enable local cache
manager.enableLocalCache();
CacheClient cc = manager.createClient();
cc.set("key", "value1");
// get the object from remote Xixibase server
System.out.println(cc.get("key"));
// get the object from remote Xixibase server
// and watch the change of the object
// and save this object into local cache
System.out.println(cc.getW("key"));
// try to get the object from local cache
// if the object is not exist in local cache
// get the object from remote Xixibase server
System.out.println(cc.getL("key"));
// try to get the object from local cache
// if the object is not exist in local cache
// get the object from remote Xixibase server
// and watch the change of the object
// and save this object into local cache
System.out.println(cc.getLW("key"));
cc.flush();
// set object to remote Xixibase server
// and watch the change of the object
// and save this object into local cache
cc.setW("key", "value2");
System.out.println(cc.getL("key"));
cc.flush();
manager.shutdown();
}