@Override public Map<String, Object> getBulk(final Collection<String> keys) throws TimeoutException, CacheException { try { return memcachedClient.getBulk(keys); } catch (OperationTimeoutException e) { LOGGER.warn("Operation timeout while getBulk {}", keys, e); throw (TimeoutException) e.getCause(); } catch (RuntimeException e) { if (translateException(e)) { throw new CacheException(e); } throw e; } }
@Override public Map<String, Object> getBulk(final Collection<String> keys) throws TimeoutException, CacheException { try { return memcachedClient.getBulk(keys); } catch (OperationTimeoutException e) { LOGGER.warn("Operation timeout while getBulk {}", keys, e); throw (TimeoutException) e.getCause(); } catch (RuntimeException e) { if (translateException(e)) { throw new CacheException(e); } throw e; } }
@Override public <T> Map<String, T> getBulk(final Collection<String> keys, final CacheTranscoder transcoder) throws TimeoutException, CacheException { try { return memcachedClient.getBulk(keys, this.<T> getTranscoder(transcoder)); } catch (OperationTimeoutException e) { LOGGER.warn("Operation timeout while getBulk {}", keys, e); throw (TimeoutException) e.getCause(); } catch (RuntimeException e) { if (translateException(e)) { throw new CacheException(e); } throw e; } }
@Override public <T> Map<String, T> getBulk(final Collection<String> keys, final CacheTranscoder transcoder) throws TimeoutException, CacheException { try { return memcachedClient.getBulk(keys, this.<T> getTranscoder(transcoder)); } catch (OperationTimeoutException e) { LOGGER.warn("Operation timeout while getBulk {}", keys, e); throw (TimeoutException) e.getCause(); } catch (RuntimeException e) { if (translateException(e)) { throw new CacheException(e); } throw e; } }