@ Override public < T > T get ( String key , Transcoder < T > tc ) { try { return asyncGet ( key , tc ) . get ( operationTimeout , TimeUnit . MILLISECONDS ) ; } catch ( InterruptedException e ) { throw new RuntimeException ( "Interrupted waiting for value" , e ) ; } catch ( ExecutionException e ) { if ( e . getCause ( ) instanceof CancellationException ) { throw ( CancellationException ) e . getCause ( ) ; } else { throw new RuntimeException ( "Exception waiting for value" , e ) ; } } catch ( TimeoutException e ) { throw new OperationTimeoutException ( "Timeout waiting for value: " + buildTimeoutMessage ( operationTimeout , TimeUnit . MILLISECONDS ) , e ) ; } }
Get with a single key .