dharshan
dharshan

Reputation: 763

How to create JCS cache regions at runtime?

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

Upvotes: 0

Views: 279

Answers (1)

Keshi
Keshi

Reputation: 1084

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

Upvotes: 1

Related Questions