LogManager.getLogger(FsDirectory.class).setLevel(Level.WARN);
CacheManager mgr = CacheManager.create();
synchronized(mgr) {
cache = mgr.getCache("dfsin");
if (cache == null) {
cache = new Cache("dfsin", 2000, MemoryStoreEvictionPolicy.LFU,
true, diskCacheDir, false, 1800, 600, false, 300, null);
mgr.addCache(cache);
cache = mgr.getCache("dfsin");
LOG.info("Created cache: " + cache.toString());
}