[jboss-user] [JBossCache] - Re: Multiple Objects under a single key in POJOCache?
Yes, that is one reason. The other is really from PojoCache point of view, it is more natural to associate with a String id than a Fqn object id. At least that was then. :-) -Ben View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4073835#4073835 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4073835 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossCache] - Re: Multiple Objects under a single key in POJOCache?
Hi Jason, [EMAIL PROTECTED] wrote : Id really should be called Fqn in the signature. You can use this method to find all objects at a particular location in the cache. | | For example: | | | cache.attach(/people/Bob, bob); | | cache.attach(/people/Fred, fred); | | cache.attach(/group/Admins, admins); | | | | // Returns Bob and Fred | | cache.findAll(/people); | | | | -Jason | | Thanks for the reply!! Yes, that's make it much clearer! Kind regards View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4073854#4073854 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4073854 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossCache] - Re: Multiple Objects under a single key in POJOCache?
Hi Ben, [EMAIL PROTECTED] wrote : No, you can't associate multiple objects using a single key. Then is the only use for the findAll() method to get all objects in the cache? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4073619#4073619 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4073619 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossCache] - Re: Multiple Objects under a single key in POJOCache?
Since, there doesn't seem to be much point to use findAll(id) when you could just as well use find(id) if there will only be one object associated with this id? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4073620#4073620 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4073620 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossCache] - Re: Multiple Objects under a single key in POJOCache?
Id really should be called Fqn in the signature. You can use this method to find all objects at a particular location in the cache. For example: | cache.attach(/people/Bob, bob); | cache.attach(/people/Fred, fred); | cache.attach(/group/Admins, admins); | | // Returns Bob and Fred | cache.findAll(/people); | -Jason View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4073636#4073636 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4073636 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossCache] - Re: Multiple Objects under a single key in POJOCache?
btw, why does PojoCache use String and not Fqn in the method calls? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4073672#4073672 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4073672 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossCache] - Re: Multiple Objects under a single key in POJOCache?
Good question. I believe Ben was trying to minimize the amount of API you needed to use to work with POJO Cache. I will add overloaded FQN methods for 2.1.0: http://jira.jboss.com/jira/browse/JBCACHE-1163 -Jason View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4073694#4073694 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4073694 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossCache] - Re: Multiple Objects under a single key in POJOCache?
BTW I should note that I would have replaced the String versions in 2.0.0, but I didnt because by the time I joined JBoss Cache was already in CR and I didn't want to make such a significant API change. Also people are used to the String versions from the 1.X series, so leaving them would minimize the effort to upgrade to 2.0. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4073697#4073697 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4073697 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossCache] - Re: Multiple Objects under a single key in POJOCache?
No, you can't associate multiple objects using a single key. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4073430#4073430 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4073430 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user