2012-10-26 52 views

回答

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