@Override protected CacheStoreConfig createCacheStoreConfig() throws CacheLoaderException { LevelDBCacheStoreConfig cfg = new LevelDBCacheStoreConfig(); cfg.setLocation(tmpDirectory + "/data"); cfg.setExpiraryLocation(tmpDirectory + "/expiry"); cfg.setClearThreshold(2); cfg.setPurgeSynchronously(true); // for more accurate unit testing return cfg; }
protected LevelDBCacheStoreConfig createCacheStoreConfig() throws CacheLoaderException { LevelDBCacheStoreConfig cfg = super.createCacheStoreConfig(); cfg.setImplementationType(ImplementationType.JNI.toString()); return cfg; }