public Long decrBy(byte[] key, long value) {
   try {
     if (isPipelined()) {
       pipeline(pipeline.decrby(key, value));
       return null;
     }
     return client.decrby(key, value).data();
   } catch (Exception ex) {
     throw convertSrpAccessException(ex);
   }
 }
Пример #2
0
 @Test
 public void decrby() {
   eq("OK", rc.set("mykey", "10"));
   eq(5, rc.decrby("mykey", 5));
 }