Example #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;
 }
Example #2
0
 @Override
 public Cache<RelationshipImpl> relationship() {
   return provider.newRelationshipCache(logger, config, monitors);
 }