evcache-client-sample/src/main/java/com/netflix/evcache/sample/EVCacheClientZipkinTracingSample.java [58:78]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  public void setKey(String key, String value, int timeToLive) throws Exception {
    try {

      Future<Boolean>[] _future = evCache.set(key, value, timeToLive);

      // Wait for all the Futures to complete.
      // In "verbose" mode, show the status for each.
      for (Future<Boolean> f : _future) {
        boolean didSucceed = f.get();
        if (verboseMode) {
          System.out.println("per-shard set success code for key " + key + " is " + didSucceed);
        }
      }
      if (!verboseMode) {
        // Not verbose. Just give one line of output per "set," without a success code
        System.out.println("finished setting key " + key);
      }
    } catch (EVCacheException e) {
      e.printStackTrace();
    }
  }
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



evcache-client-sample/src/main/java/com/netflix/evcache/sample/EVCacheClientSample.java [72:91]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    public void setKey(String key, String value, int timeToLive) throws Exception {
        try {
            Future<Boolean>[] _future = evCache.set(key, value, timeToLive);

            // Wait for all the Futures to complete.
            // In "verbose" mode, show the status for each.
            for (Future<Boolean> f : _future) {
            	boolean didSucceed = f.get();
            	if (verboseMode) {
                    System.out.println("per-shard set success code for key " + key + " is " + didSucceed);
                }
            }
            if (!verboseMode) {
                // Not verbose. Just give one line of output per "set," without a success code
                System.out.println("finished setting key " + key);
            }
        } catch (EVCacheException e) {
            e.printStackTrace();
        }
    }
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



