So you're saying if you do this:
cache.put("/X", "A", "A"); cache.put("/X", "B", "B"); Object result = cache.get("/X", "A");
You're getting "B" for result?
Thanks 4 understanding my problem...
Yes...exactly what u said is happening....
How can i overcome this problem....do reply me fast.....
What JBossCache version?
The problem you describe is so fundamental that it's hard for me to even imagine what it might be. If you can create a simple test case that demonstrates this and attach it to a new JIRA, I'll take a look. Please make the test case entirely self-contained; I don't want to have to set up a test environment to look at it.
Are your keys, that you use in cache, of type String or of some other type. Was just wondering if this has got something to do with the equals method of your key.
cache.put("/X", "yourKey", "A"); Object previousValue = cache.put("/X", "someOtherKey", "B");
What does previousValue hold in this case? Is it "A"?