use of com.orientechnologies.orient.core.storage.cache.local.OWOWCache in project orientdb by orientechnologies.
the class ReadWriteDiskCacheTest method initBuffer.
private void initBuffer() throws IOException {
writeBuffer = new OWOWCache(false, PAGE_SIZE, new OByteBufferPool(PAGE_SIZE), -1, writeAheadLog, -1, WRITE_CACHE_MAX_SIZE, WRITE_CACHE_MAX_SIZE + READ_CACHE_MAX_MEMORY, storageLocal, false, files, 1);
writeBuffer.loadRegisteredFiles();
readBuffer = new O2QCache(READ_CACHE_MAX_MEMORY, PAGE_SIZE, false, 50);
}
Aggregations