@Override public long incr(final String key, final int by, final long def) throws TimeoutException, CacheException { try { return memcachedClient.incr(key, by, def); } catch (OperationTimeoutException e) { LOGGER.warn("Operation timeout while incr {}", key, e); throw new TimeoutException(e.getMessage()); } catch (RuntimeException e) { if (translateException(e)) { throw new CacheException(e); } throw e; } }
@Override public long incr(final String key, final int by) throws TimeoutException, CacheException { try { return memcachedClient.incr(key, by); } catch (OperationTimeoutException e) { LOGGER.warn("Operation timeout while incr {}", key, e); throw new TimeoutException(e.getMessage()); } catch (RuntimeException e) { if (translateException(e)) { throw new CacheException(e); } throw e; } }
@Override public long decr(final String key, final int by, final long def) throws TimeoutException, CacheException { try { return memcachedClient.decr(key, by, def); } catch (OperationTimeoutException e) { LOGGER.warn("Operation timeout while decr {}", key, e); throw new TimeoutException(e.getMessage()); } catch (RuntimeException e) { if (translateException(e)) { throw new CacheException(e); } throw e; } }
@Override public long incr(final String key, final int by) throws TimeoutException, CacheException { try { return memcachedClient.incr(key, by); } catch (OperationTimeoutException e) { LOGGER.warn("Operation timeout while incr {}", key, e); throw new TimeoutException(e.getMessage()); } catch (RuntimeException e) { if (translateException(e)) { throw new CacheException(e); } throw e; } }
@Override public long decr(final String key, final int by) throws TimeoutException, CacheException { try { return memcachedClient.decr(key, by); } catch (OperationTimeoutException e) { LOGGER.warn("Operation timeout while decr {}", key, e); throw new TimeoutException(e.getMessage()); } catch (RuntimeException e) { if (translateException(e)) { throw new CacheException(e); } throw e; } }
@Override public long incr(final String key, final int by, final long def, final int expiration) throws TimeoutException, CacheException { try { return memcachedClient.incr(key, by, def, expiration); } catch (OperationTimeoutException e) { LOGGER.warn("Operation timeout while incr {}", key, e); throw new TimeoutException(e.getMessage()); } catch (RuntimeException e) { if (translateException(e)) { throw new CacheException(e); } throw e; } }
@Override public long decr(final String key, final int by) throws TimeoutException, CacheException { try { return memcachedClient.decr(key, by); } catch (OperationTimeoutException e) { LOGGER.warn("Operation timeout while decr {}", key, e); throw new TimeoutException(e.getMessage()); } catch (RuntimeException e) { if (translateException(e)) { throw new CacheException(e); } throw e; } }
@Override public long decr(final String key, final int by, final long def) throws TimeoutException, CacheException { try { return memcachedClient.decr(key, by, def); } catch (OperationTimeoutException e) { LOGGER.warn("Operation timeout while decr {}", key, e); throw new TimeoutException(e.getMessage()); } catch (RuntimeException e) { if (translateException(e)) { throw new CacheException(e); } throw e; } }
@Override public long incr(final String key, final int by, final long def) throws TimeoutException, CacheException { try { return memcachedClient.incr(key, by, def); } catch (OperationTimeoutException e) { LOGGER.warn("Operation timeout while incr {}", key, e); throw new TimeoutException(e.getMessage()); } catch (RuntimeException e) { if (translateException(e)) { throw new CacheException(e); } throw e; } }
@Override public long incr(final String key, final int by, final long def, final int expiration) throws TimeoutException, CacheException { try { return memcachedClient.incr(key, by, def, expiration); } catch (OperationTimeoutException e) { LOGGER.warn("Operation timeout while incr {}", key, e); throw new TimeoutException(e.getMessage()); } catch (RuntimeException e) { if (translateException(e)) { throw new CacheException(e); } throw e; } }