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