diff --git a/pom.xml b/pom.xml
index 818d722..8f3d081 100644
--- a/pom.xml
+++ b/pom.xml
@@ -98,7 +98,7 @@
io.projectreactor
reactor-bom
- 2020.0.24
+ 2022.0.1
pom
import
@@ -110,7 +110,7 @@
reactor-tools
original
runtime
- 3.4.24
+ 3.5.1
com.google.guava
@@ -237,7 +237,7 @@
org.rocksdb
rocksdbjni
- 7.7.3
+ 7.8.3
org.apache.lucene
diff --git a/src/main/java/it/cavallium/dbengine/database/disk/LLLocalKeyValueDatabase.java b/src/main/java/it/cavallium/dbengine/database/disk/LLLocalKeyValueDatabase.java
index 6b01cf9..cf986bf 100644
--- a/src/main/java/it/cavallium/dbengine/database/disk/LLLocalKeyValueDatabase.java
+++ b/src/main/java/it/cavallium/dbengine/database/disk/LLLocalKeyValueDatabase.java
@@ -909,7 +909,18 @@ public class LLLocalKeyValueDatabase extends Backuppable implements LLKeyValueDa
// end force compact
}
- record OptionsWithCache(DBOptions options, @Nullable Cache standardCache, @Nullable Cache compressedCache) {}
+
+ record OptionsWithCache(DBOptions options, @Nullable Cache standardCache, @Nullable Cache compressedCache) {
+
+ /**
+ * SecondaryCache will replace compressed cache
+ */
+ @Deprecated(forRemoval = true)
+ @Override
+ public Cache compressedCache() {
+ return compressedCache;
+ }
+ }
private static OptionsWithCache openRocksDb(@Nullable Path path, DatabaseOptions databaseOptions, RocksDBRefs refs)
throws IOException {
@@ -1001,6 +1012,7 @@ public class LLLocalKeyValueDatabase extends Backuppable implements LLKeyValueDa
}
Cache blockCache;
+ //todo: compressed cache will be replaced with SecondaryCache in the future
Cache compressedCache;
final boolean useDirectIO = databaseOptions.useDirectIO();
final boolean allowMmapReads = !useDirectIO && databaseOptions.allowMemoryMapping();