@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; }
@Override public Cache<NodeImpl> node() { return provider.newNodeCache(logger, config, monitors); }