Destroys a specifically named and managed {@link Cache}. Once destroyed a new {@link Cache} of the same name but with a different {@link Configuration} may be configured.
This is equivalent to the following sequence of method calls:
- {@link Cache#clear()}
- {@link Cache#close()}
followed by allowing the name of the {@link Cache} to be used for other{@link Cache} configurations.
From the time this method is called, the specified {@link Cache} is notavailable for operational use. An attempt to call an operational method on the {@link Cache} will throw an {@link IllegalStateException}.
@param cacheName the cache to destroy
@throws IllegalStateException if the {@link CacheManager}{@link #isClosed()}
@throws NullPointerException if cacheName is null
@throws SecurityException when the operation could not be performeddue to the current security settings