We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 2be51e1 + 6a1aac7 commit e0ae4adCopy full SHA for e0ae4ad
src/main/java/org/apache/ibatis/cache/decorators/ScheduledCache.java
@@ -17,6 +17,8 @@
17
18
import org.apache.ibatis.cache.Cache;
19
20
+import java.util.concurrent.TimeUnit;
21
+
22
/**
23
* @author Clinton Begin
24
*/
@@ -28,7 +30,7 @@ public class ScheduledCache implements Cache {
28
30
29
31
public ScheduledCache(Cache delegate) {
32
this.delegate = delegate;
- this.clearInterval = 60 * 60 * 1000; // 1 hour
33
+ this.clearInterval = TimeUnit.HOURS.toMillis(1);
34
this.lastClear = System.currentTimeMillis();
35
}
36
0 commit comments