0

Can anybody tell me how to create a JCS cache region at run-time ?

dharshan
  • 733
  • 4
  • 11
  • 24

1 Answers1

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