Merge "Make VC cache location customizable."
diff --git a/Changes b/Changes
index 8ed4d6a..8879cc9 100644
--- a/Changes
+++ b/Changes
@@ -1,5 +1,6 @@
-0.62.3 2024-04-11
+0.62.3 2024-04-16
- [cleanup] Added getDocBitsSupplier to VirtualCorpusFilter (margaretha)
+ - [feature] Make VC cache location customizable (margaretha)
0.62.2 2024-02-20
- [feature] Support MMap directory parameters directly
diff --git a/src/main/java/de/ids_mannheim/korap/cache/VirtualCorpusCache.java b/src/main/java/de/ids_mannheim/korap/cache/VirtualCorpusCache.java
index 069ec68..6f93974 100644
--- a/src/main/java/de/ids_mannheim/korap/cache/VirtualCorpusCache.java
+++ b/src/main/java/de/ids_mannheim/korap/cache/VirtualCorpusCache.java
@@ -35,7 +35,8 @@
public static Pattern vcNamePattern = Pattern.compile("[a-zA-Z0-9]+[a-zA-Z_0-9-.]+");
- public static final String CACHE_LOCATION = "vc-cache";
+ public static String CACHE_LOCATION = "vc-cache";
+
public static int CAPACITY = 5;
public static final Map<String, Map<String, DocBits>> map = Collections
.synchronizedMap(new LinkedHashMap<String, Map<String, DocBits>>(
@@ -61,7 +62,6 @@
dir.mkdirs();
}
-
/**
* Path traversal must not be allowed using the VC ID.
*