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