Community

JBossCache200Migration

modified by James Livingston in JBoss Cache - View the full document

This page is for users of JBoss Cache 1.x.x who wish to move to JBoss Cache 2.x.x, and talks about how things have changed, and how existing code can be migrated to the new APIs.

 

It is assumed that you have already read the JBoss Cache User Guide and FAQs.

 

Q: Where is ?

 

A: , the central class in JBoss Cache 1.x.x, has been removed in favour of API access via a  interface.  This gives the implementation more flexibility, and adds further safety by restricting the API methods exposed.

 

Q: Can s be directly manipulated now, and will aspects such as locking, replication and cache loading still be applied?

 

A: Yes.  JBoss Cache 1.x.x exposed  objects but did not apply any of the JBoss Cache aspects when directy manipulating a .  In 2.0.0 we have promoted  to a top-level construct and it is in fact encouraged to use s directly rather than operations on .

 

Q: How do I create a  then?

 

A: Use a .  JBoss Cache 2.0.0 ships with a  implementation.  See the User Guide for examples.

Comment by going to Community

Create a new document in JBoss Cache at Community