コード例 #1
0
  @Test
  public void decr() throws TimeoutException, CacheException {
    String cacheKey = "key1";
    int by = 5;

    cache.decr(cacheKey, by);
    Mockito.verify(cacheClient).decr(getKey(cacheKey), by);
  }
コード例 #2
0
 public long decr(String key, int by) throws Exception {
   return cache.decr(key, by);
 }
コード例 #3
0
 /**
  * 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);
 }