public void addCacheConfiguration(final String alias, final CacheConfiguration<?, ?> config) {
    if (caches.put(alias, config) != null) {
      throw new IllegalStateException("Cache '" + alias + "' already present!");
    }
  }
public void addCacheConfiguration ( final String alias , final CacheConfiguration < ? , ? > config ) { if ( caches . put ( alias , config ) != null ) { throw new IllegalStateException ( "Cache '" + alias + "' already present!" ) ; } }
Adds a {@link CacheConfiguration} tied to the provided alias.

@param alias the alias of the cache
@param config the configuration of the cache