cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cohei...@apache.org
Subject svn commit: r1546001 - /cxf/fediz/trunk/plugins/core/src/main/java/org/apache/cxf/fediz/core/EHCacheTokenReplayCache.java
Date Wed, 27 Nov 2013 11:50:02 GMT
Author: coheigea
Date: Wed Nov 27 11:50:01 2013
New Revision: 1546001

URL: http://svn.apache.org/r1546001
Log:
Make sure last access time is set to zero before putting an element in the cache

Modified:
    cxf/fediz/trunk/plugins/core/src/main/java/org/apache/cxf/fediz/core/EHCacheTokenReplayCache.java

Modified: cxf/fediz/trunk/plugins/core/src/main/java/org/apache/cxf/fediz/core/EHCacheTokenReplayCache.java
URL: http://svn.apache.org/viewvc/cxf/fediz/trunk/plugins/core/src/main/java/org/apache/cxf/fediz/core/EHCacheTokenReplayCache.java?rev=1546001&r1=1546000&r2=1546001&view=diff
==============================================================================
--- cxf/fediz/trunk/plugins/core/src/main/java/org/apache/cxf/fediz/core/EHCacheTokenReplayCache.java
(original)
+++ cxf/fediz/trunk/plugins/core/src/main/java/org/apache/cxf/fediz/core/EHCacheTokenReplayCache.java
Wed Nov 27 11:50:01 2013
@@ -117,7 +117,9 @@ public class EHCacheTokenReplayCache imp
             }
         }
         
-        cache.put(new Element(id, id, false, parsedTTL, parsedTTL));
+        Element cacheElement = new Element(id, id, false, parsedTTL, parsedTTL);
+        cacheElement.resetAccessStatistics();
+        cache.put(cacheElement);
     }
     
     /**



Mime
View raw message