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.
1 parent b5ee674 commit 6a1aac7Copy full SHA for 6a1aac7
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 * 1_000L; // 1 hour
33
+ this.clearInterval = TimeUnit.HOURS.toMillis(1);
34
this.lastClear = System.currentTimeMillis();
35
}
36
0 commit comments