[jboss-user] [JBoss Cache] - JBossCache200Migration

Michael Schechter do-not-reply at jboss.com
Wed Sep 15 06:23:41 EDT 2010


Michael Schechter [http://community.jboss.org/people/mschechter] modified the document:

"JBossCache200Migration"

To view the document, visit: http://community.jboss.org/docs/DOC-10246

--------------------------------------------------------------
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 (http://community.jboss.org/docs/DOC-12843).

*Q:* Where is TreeCache?

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

*Q:* Can Nodes 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 Node objects but did not apply any of the JBoss Cache aspects when directly manipulating a Node.  In 2.0.0 we have promoted Node to a top-level construct and it is in fact encouraged to use Nodes directly rather than operations on Cache.

*Q:* How do I create a Cache then?

*A:* Use a CacheFactory.  JBoss Cache 2.0.0 ships with a DefaultCacheFactory implementation.  See the  http://community.jboss.org/docs/DOC-12843 User Guide for examples.
--------------------------------------------------------------

Comment by going to Community
[http://community.jboss.org/docs/DOC-10246]

Create a new document in JBoss Cache at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=102&containerType=14&container=2052]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20100915/7c6e5bbc/attachment-0002.html 


More information about the jboss-user mailing list