src/main/java/com/github/mrcritical/ironcache/DefaultIronCacheProvider.java
@Override
	public void clearCache(final String name) {
		try {

			final CacheResponse response = objectMapper.readValue(
					requestFactory.buildPostRequest(new ClearCacheUrl(hostName, projectId, name), new EmptyContent())
							.execute().getContent(), CacheResponse.class);

			validate(response, "cleared");

			log.debug("Successful request to clear to cache {}", name);

		} catch (final HTTPException e) {
			if (e.getStatusCode() == 301) {
				// Swallow this since that is what happens when cleared (it
				// isn't documented in the API spec)
				return;
			}
			throw Throwables.propagate(e);

		} catch (final Exception e) {
			throw Throwables.propagate(e);
		}
	}
@Override
	public void clearCache(final String name) {
		try {

			final CacheResponse response = objectMapper.readValue(
					requestFactory.buildPostRequest(new ClearCacheUrl(hostName, projectId, name), new EmptyContent())
							.execute().getContent(), CacheResponse.class);

			validate(response, "cleared");

			log.debug("Successful request to clear to cache {}", name);

		} catch (final HTTPException e) {
			if (e.getStatusCode() == 301) {
				// Swallow this since that is what happens when cleared (it
				// isn't documented in the API spec)
				return;
			}
			throw Throwables.propagate(e);

		} catch (final Exception e) {
			throw Throwables.propagate(e);
		}
	}
/*
(non-Javadoc)

@see
com.github.mrcritical.ironcache.SimpleIronCache#clearCache(java.lang.
String)