How to create JCS cache regions at runtime?
Pregunta
Can anybody tell me how to create a JCS cache region at run-time ?
Solución
JCS jcs = JCS.getInstance("REGION");
IElementAttributes attr = new ElementAttributes();
attr.setIsEternal(false);
attr.setMaxLifeSeconds( maxLife );
jcs.put("Key",data, attr);
Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow