2012-10-26 46 views

回答

1
JCS jcs = JCS.getInstance("REGION"); 
IElementAttributes attr = new ElementAttributes(); 
attr.setIsEternal(false); 
attr.setMaxLifeSeconds(maxLife); 
jcs.put("Key",data, attr);