public DiskPagedLongCache(File file, int cacheSize, Codec<V> codec) {
if(!file.exists()) {
throw new IllegalStateException("File does not exists: " + file.getAbsolutePath());
}
this.paged = new VarSegments(file, cacheSize);
this.internalCache = new ConcurrentLongCache(cacheSize, this);
this.codec = codec;
}