Skip to content

Commit 7b4d2fe

Browse files
committed
Revert "Expire cache entry after 15 minutes"
This reverts commit a19398b.
1 parent 30b808b commit 7b4d2fe

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

plugin/core/src/main/java/broccolai/tickets/core/service/ticket/CachedTicketService.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,14 @@
2626
import java.util.Optional;
2727
import java.util.Set;
2828
import java.util.UUID;
29-
import java.util.concurrent.TimeUnit;
3029
import java.util.function.Predicate;
3130

3231
@Singleton
3332
public final class CachedTicketService implements TicketService {
3433

3534
private final StorageService storageService;
3635

37-
private final Cache<Integer, Ticket> cache = Caffeine.newBuilder().expireAfterAccess(15, TimeUnit.MINUTES).build();
36+
private final Cache<Integer, Ticket> cache = Caffeine.newBuilder().build();
3837
private final Multimap<UUID, TicketStatus> lookups = MultimapBuilder.hashKeys().enumSetValues(TicketStatus.class).build();
3938

4039
@Inject

0 commit comments

Comments
 (0)