mirror of
https://github.com/google/nomulus.git
synced 2025-07-03 01:33:29 +02:00
Convert more Guava caches to Caffeine (#1603)
* Convert more Guava caches to Caffeine
This commit is contained in:
parent
ed1f4a046e
commit
103f43465c
59 changed files with 196 additions and 170 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue