.concurrencyLevel(concurrencyLevel).bufferCleanerPeriod(bufferCleanerPeriod)
.bufferCleanerThreshold(bufferCleanerThreshold).evictionPeriod(evictionPeriod)
.serializer(serializer).storage(bufferStore);
cache = builder.build();
} else if (type.equals("versionedoffheap")) {
VersionedOffHeapCacheBuilder builder = CacheBuilder.versionedOffHeapCache();
builder.cacheLoader(cacheLoader).evictionListener(evictionListener).indexHandler(indexHandler)
.concurrencyLevel(concurrencyLevel).bufferCleanerPeriod(bufferCleanerPeriod)
.bufferCleanerThreshold(bufferCleanerThreshold).evictionPeriod(evictionPeriod)
.serializer(serializer).storage(bufferStore);
cache = builder.build();
}
return cache;
}