@Test public void incr() throws TimeoutException, CacheException { String cacheKey = "key1"; int by = 5; int def = 1; cache.incr(cacheKey, by, def); Mockito.verify(cacheClient).incr(getKey(cacheKey), by, def); }
public long incr(String key, int by) throws Exception { return cache.incr(key, by); }
/** * Increment the element value (must be a Number). * * @param key Element key * @param by The incr value * @return The new value * @throws Exception */ public long incr(Collection<Object> keyCondition, int by) throws Exception { return cache.incr(keyCondition, by); }