public List<Future<Integer>> cache(FormScan scan) { try { Map<String, Object> toPut = scan.getValuesToCache(); if(!toPut.isEmpty()) { return Collections.singletonList(cache.enqueuePut(toPut)); } } catch (Exception e) { LOGGER.severe("Failed to start memcache put for " + scan); } return Collections.emptyList(); }