1
0
mirror of https://github.com/google/nomulus synced 2026-02-03 11:32:24 +00:00

Convert more Guava caches to Caffeine (#1603)

* Convert more Guava caches to Caffeine
This commit is contained in:
Ben McIlwain
2022-04-26 11:26:51 -04:00
committed by GitHub
parent 60a011c593
commit 0dfabe1c64
59 changed files with 196 additions and 170 deletions

View File

@@ -14,9 +14,9 @@
package google.registry.testing;
import com.google.common.cache.CacheBuilder;
import com.google.common.cache.CacheLoader;
import com.google.common.cache.LoadingCache;
import com.github.benmanes.caffeine.cache.CacheLoader;
import com.github.benmanes.caffeine.cache.Caffeine;
import com.github.benmanes.caffeine.cache.LoadingCache;
import com.google.common.flogger.FluentLogger;
import java.io.IOException;
import java.util.concurrent.ExecutionException;
@@ -29,7 +29,7 @@ public final class SystemInfo {
private static final FluentLogger logger = FluentLogger.forEnclosingClass();
private static final LoadingCache<String, Boolean> hasCommandCache =
CacheBuilder.newBuilder()
Caffeine.newBuilder()
.build(
new CacheLoader<String, Boolean>() {
@Override