Пример #1
0
  private boolean cacheConfigSame(CacheProvider type, Config config) {
    return this.type != null
        && this.type.getName().equals(type.getName())
        &&

        // Only reuse array caches, since the other ones are cheap to recreate
        HighPerformanceCacheProvider.NAME.equals(this.type.getName())
        && mySettingIsSameAs(config, node_cache_array_fraction)
        && mySettingIsSameAs(config, relationship_cache_array_fraction)
        && mySettingIsSameAs(config, node_cache_size)
        && mySettingIsSameAs(config, relationship_cache_size);
  }