uf = null;
CacheFactory cf = (CacheFactory) Monitor.startSystemModule(org.apache.derby.iapi.reference.Module.CacheFactory);
int pageCacheSize = getIntParameter(
RawStoreFactory.PAGE_CACHE_SIZE_PARAMETER,
null,
RawStoreFactory.PAGE_CACHE_SIZE_DEFAULT,
RawStoreFactory.PAGE_CACHE_SIZE_MINIMUM,
RawStoreFactory.PAGE_CACHE_SIZE_MAXIMUM);
pageCache =
cf.newCacheManager(this,
"PageCache",
pageCacheSize / 2,
pageCacheSize);
int fileCacheSize = getIntParameter(
"derby.storage.fileCacheSize",
null,
100,
2,
100);
containerCache = cf.newCacheManager(this, "ContainerCache", fileCacheSize / 2, fileCacheSize);
if (create)
{
String noLog =
startParams.getProperty(Property.CREATE_WITH_NO_LOG);