![JAR search and dependency download from the Maven repository](/logo.png)
it.unipi.di.acube.searchapi.main.FixCache Maven / Gradle / Ivy
package it.unipi.di.acube.searchapi.main;
import org.mapdb.DB;
import org.mapdb.DBMaker;
import it.unipi.di.acube.searchapi.CachedWebsearchApi;
public class FixCache {
public static void main(String[] args) throws Exception {
DB db = DBMaker.fileDB(args[0]).fileMmapEnable().closeOnJvmShutdownWeakReference().checksumHeaderBypass().make();
db.close();
CachedWebsearchApi cached = CachedWebsearchApi.builder().path(args[0]).create();
System.out.printf("Total cached URIs: %d", cached.getCachedRequests());
cached.close();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy