Skip to content
This repository was archived by the owner on Mar 7, 2026. It is now read-only.

Commit b37a22d

Browse files
committed
Fix critial bug CacheHub#CHALLENGE_CACHE expireAfterWrite duration
1 parent d7b6dc1 commit b37a22d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
<groupId>com.aayushatharva</groupId>
88
<artifactId>SourceEngineQueryCacher</artifactId>
9-
<version>1.5.0</version>
9+
<version>1.5.1</version>
1010

1111
<properties>
1212
<java.version>11</java.version>

src/main/java/com/aayushatharva/sourcecenginequerycacher/utils/CacheHub.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public final class CacheHub {
2525
public static final Cache<String, String> CHALLENGE_CACHE = CacheBuilder.newBuilder()
2626
.maximumSize(Config.MaxChallengeCode)
2727
.expireAfterAccess(Duration.ofMillis(Config.ChallengeCodeTTL))
28-
.expireAfterWrite(Duration.ofSeconds(Config.ChallengeCodeTTL))
28+
.expireAfterWrite(Duration.ofMillis(Config.ChallengeCodeTTL))
2929
.concurrencyLevel(Config.ChallengeCodeCacheConcurrency)
3030
.build();
3131
}

0 commit comments

Comments
 (0)