Package com.github.mrcritical.ironcache.internal.model.requests

Examples of com.github.mrcritical.ironcache.internal.model.requests.IncrementCacheItemUrl


  public void incrementItem(final String name, final String key, final int amount) {
    try {

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

      validate(response, "added");
View Full Code Here

TOP

Related Classes of com.github.mrcritical.ironcache.internal.model.requests.IncrementCacheItemUrl

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.