forked from sirixdb/sirix
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Fix GC issue * Disable tests and delete everything during setup * Fix bug regarding concurrent/parallel access. * Update build.gradle --------- Co-authored-by: Johannes Lichtenberger <[email protected]>
- Loading branch information
1 parent
0049706
commit 5d49a46
Showing
13 changed files
with
64 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,10 +27,11 @@ | |
*/ | ||
package org.sirix.cache; | ||
|
||
import com.github.benmanes.caffeine.cache.Caffeine; | ||
import org.sirix.page.RevisionRootPage; | ||
|
||
import java.util.Map; | ||
import java.util.concurrent.TimeUnit; | ||
import org.sirix.page.RevisionRootPage; | ||
import com.github.benmanes.caffeine.cache.Caffeine; | ||
|
||
/** | ||
* @author Johannes Lichtenberger <a href="mailto:[email protected]">mail</a> | ||
|
@@ -42,8 +43,8 @@ public final class RevisionRootPageCache implements Cache<Integer, RevisionRootP | |
public RevisionRootPageCache(final int maxSize) { | ||
pageCache = Caffeine.newBuilder() | ||
.maximumSize(maxSize) | ||
.expireAfterWrite(30, TimeUnit.SECONDS) | ||
.expireAfterAccess(30, TimeUnit.SECONDS) | ||
.expireAfterAccess(5, TimeUnit.MINUTES) | ||
.scheduler(scheduler) | ||
.build(); | ||
} | ||
|
||
|
@@ -83,5 +84,6 @@ public void remove(Integer key) { | |
} | ||
|
||
@Override | ||
public void close() {} | ||
public void close() { | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters