Hello All,
I am trying to use hierarchical storage using JCS.
I have added objects to cache with following code.
testCache.put ("A:1:a", object1);
testCache.put ("A:1:b", object2);
testCache.put ("A:2:a", object3);
I looking to get the first two objects using the following code
Map map = testCache.getMatching("A:1:");
This is returning empty map. Thought it would do a pattern matching with begins
with
and use colon as separator, as per the JCS web page?
However this does return a one item, as it should:
Map map = testCache.getMatching("A:1:a");
What am i missing?, does matching only match exact? please let me know.
Thanks in advance,
Raj