Skip to content

Commit

Permalink
Update for caching changes (#34)
Browse files Browse the repository at this point in the history
  • Loading branch information
labkey-jeckels authored Mar 25, 2020
1 parent 7919ff5 commit ae00266
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions lincs/src/org/labkey/lincs/LincsDataTable.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -469,17 +466,4 @@ public Object getDisplayValue(RenderContext ctx)
return getValue(ctx);
}
}

private static final CacheLoader<String, Boolean> _gctFileCacheLoader = (key, arg) ->
{
if (arg != null)
{
return Files.exists((Path) arg);
}
return Boolean.FALSE;
};

private static final BlockingStringKeyCache<Boolean> _gctCache =
new BlockingStringKeyCache<Boolean>(CacheManager.getStringKeyCache(1000, CacheManager.WEEK, "GctFileCache"), _gctFileCacheLoader);

}

0 comments on commit ae00266

Please sign in to comment.