src/main/java/com/github/mrcritical/ironcache/DefaultIronCacheProvider.java
@Override
	public void incrementItem(final String name, final String key, final int amount) {
		try {

			final IncrementCacheResponse response = objectMapper.readValue(
					requestFactory
							.buildPostRequest(new IncrementCacheItemUrl(hostName, projectId, name, key),
									new JsonHttpContent(JSON_FACTORY, new Increment().amount(amount))).execute()
							.getContent(), IncrementCacheResponse.class);

			// Validate an increment, presence of a value is validation
			if (null == response.getValue()) {
				String message = MoreObjects.firstNonNull(
						response.getMessage(), "Increment value returned NULL");
				throw new IllegalArgumentException(message);
			}

		} catch (final Exception e) {
			throw Throwables.propagate(e);
		}
	}
@Override
	public void incrementItem(final String name, final String key, final int amount) {
		try {

			final IncrementCacheResponse response = objectMapper.readValue(
					requestFactory
							.buildPostRequest(new IncrementCacheItemUrl(hostName, projectId, name, key),
									new JsonHttpContent(JSON_FACTORY, new Increment().amount(amount))).execute()
							.getContent(), IncrementCacheResponse.class);

			// Validate an increment, presence of a value is validation
			if (null == response.getValue()) {
				String message = MoreObjects.firstNonNull(
						response.getMessage(), "Increment value returned NULL");
				throw new IllegalArgumentException(message);
			}

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

@see
com.github.mrcritical.ironcache.SimpleIronCache#incrementItem(java.lang
.String, java.lang.String, int)