Skip to Main Content

Integration

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Multiple keys pointing to same value in cache?

snidely_whiplashApr 28 2009 — edited Apr 28 2009
I would like to do something like
MyObject o = new MyObject();
cache.put("A", o);
cache.put("B", o);
cache.put("C", o);

cache.invoke("A", new RelfectionUpdater("setSomeValue", 1));
cache.invoke("B", new RelfectionUpdater("setSomeValue", 2));
cache.invoke("C", new RelfectionUpdater("setSomeValue", 3));

int x = cache.invoke("A", new ExtractorProcessor("getSomeValue")); 
//x=3
I want this type of behavior even if I change from one caching strategy to another. Is that what I should expect?

Thanks,
Andrew
This post has been answered by 698451 on Apr 28 2009
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 26 2009
Added on Apr 28 2009
1 comment
1,007 views