Mantis - Resin
Viewing Issue Advanced Details
5670 minor always 02-21-14 11:57 09-10-14 14:29
cowan  
ferg  
normal  
closed 4.0.38  
no change required  
none    
none  
0005670: JCache remove and removeAll methods are only removing cache values but not keys
remove and removeAll methods are only removing cache values but not keys

  <resin:ClusterCache ee:Named="myCache">
    <name>myCache</name>
    <modified-expire-timeout>1h</modified-expire-timeout>
  </resin:ClusterCache>

    PrintWriter writer = res.getWriter();
    myCache.put("foo", "bar");
    writer.println(myCache.get("foo"));
    writer.println(myCache.remove("foo"));
    writer.println(myCache.get("foo"));
    writer.println(myCache.containsKey("foo"));


This code prints:
bar
true
null
true

But the containsKey should return false.
Rep by C Bergoglio

Notes
(0006501)
ferg   
09-10-14 14:29   
Resin 4.0 JCache support is frozen except for critical bugs.