0

Earlier we are putting catche in liferay with help of below code.

 MultiVMKeyPoolUtil.put("SCHOOL", "ID", "Files");

In Liferay 6.2 MultiVMKeyPoolUtil not available so how can we put catche. There are no method like put in MultiVMPoolUtil class. I had search many alternative but couldn't find put method in it.

Tushar Patel
  • 573
  • 3
  • 17

1 Answers1

0

As MultiVMKeyPoolUtil not supported by liferay 6.2. I had used MultiVMPoolUtil class like below.

MultiVMPoolUtil.getCache("SCHOOL").put("ID","Files");

If you want to put collection as cache use below code.We require to make list serializable

MultiVMPoolUtil.getCache("SCHOOL").put("ID",(Serializable) courses);
Tushar Patel
  • 573
  • 3
  • 17