示例#1
0
 @Override
 public void configure(CacheProvider newType, Config config) {
   if (!cacheConfigSame(newType, config)) {
     node = newType.newNodeCache(logger, config, monitors);
     relationship = newType.newRelationshipCache(logger, config, monitors);
   } else {
     node.clear();
     relationship.clear();
   }
   this.type = newType;
   this.config = config;
 }
示例#2
0
 @Override
 public Cache<NodeImpl> node() {
   return provider.newNodeCache(logger, config, monitors);
 }