From ae00266a31aacb9e9ffe275d3f89efc8ea5d721a Mon Sep 17 00:00:00 2001 From: Josh Eckels Date: Wed, 25 Mar 2020 13:14:43 -0700 Subject: [PATCH] Update for caching changes (#34) --- lincs/src/org/labkey/lincs/LincsDataTable.java | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/lincs/src/org/labkey/lincs/LincsDataTable.java b/lincs/src/org/labkey/lincs/LincsDataTable.java index 70653103..0930d844 100644 --- a/lincs/src/org/labkey/lincs/LincsDataTable.java +++ b/lincs/src/org/labkey/lincs/LincsDataTable.java @@ -18,9 +18,6 @@ import org.apache.commons.lang3.StringUtils; import org.jetbrains.annotations.NotNull; import org.labkey.api.analytics.AnalyticsService; -import org.labkey.api.cache.BlockingStringKeyCache; -import org.labkey.api.cache.CacheLoader; -import org.labkey.api.cache.CacheManager; import org.labkey.api.data.ColumnInfo; import org.labkey.api.data.DataColumn; import org.labkey.api.data.RenderContext; @@ -469,17 +466,4 @@ public Object getDisplayValue(RenderContext ctx) return getValue(ctx); } } - - private static final CacheLoader _gctFileCacheLoader = (key, arg) -> - { - if (arg != null) - { - return Files.exists((Path) arg); - } - return Boolean.FALSE; - }; - - private static final BlockingStringKeyCache _gctCache = - new BlockingStringKeyCache(CacheManager.getStringKeyCache(1000, CacheManager.WEEK, "GctFileCache"), _gctFileCacheLoader); - }