[jboss-user] [JBoss Cache: Core Edition] - Re: How I store objects in the cache. Trivial-not trivial?
do-not-reply at jboss.com
Wed May 28 09:51:21 EDT 2008
"beep_beep" wrote : 1. Why I've chosen to create separate node for collection of A?
| 2. Why not separate node for each A in collection?
| 3. Why not separate node for each A and separate node for each A primitive attribute(int x)?
| 4. When I need cache B(that under A), what is my considerations: should I create separate node for each B, or one node for collection of Bs?
| 5.Is there some guide line to HOW we store complex structures in the cache?
| 6. If object A changed and I have eviction enabled in cluster, is it explicitly invalidates also Bs, that under that A? If B changed, does it cause invalidation of A? In what case it may happen?
1. I don't know; why have you? :-)
2. Could be done. If this is what you want.
3. This is what POJO Cache does.
4. Up to you, depending on your access patterns of B.
5. Not yet. But it is a good idea to start one on the wiki.
6. No, only a specific node is invalidated. If you are looking for invalidation of related objects, look at POJO Cache which will maintain object relationships.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4153952#4153952
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4153952
More information about the jboss-user