private <T> boolean add0(String key, int exp, T value, Transcoder<T> transcoder, long timeout) throws InterruptedException, TimeoutException, MemcachedException { byte[] keyBytes = this.checkStoreArguments(key, exp, value); return this.sendStoreCommand( this.commandFactory.createAddCommand(key, keyBytes, exp, value, false, transcoder), timeout); }
public <T> void addWithNoReply(String key, int exp, T value, Transcoder<T> transcoder) throws InterruptedException, MemcachedException { key = this.preProcessKey(key); byte[] keyBytes = this.checkStoreArguments(key, exp, value); try { this.sendStoreCommand( this.commandFactory.createAddCommand(key, keyBytes, exp, value, true, transcoder), this.opTimeout); } catch (TimeoutException e) { throw new MemcachedException(e); } }
private <T> boolean add0(String key, int exp, T value, Transcoder<T> transcoder, long timeout) throws InterruptedException, TimeoutException, MemcachedException { byte[] keyBytes = this.checkStoreArguments(key, exp, value); return this.sendStoreCommand( this.commandFactory.createAddCommand(key, keyBytes, exp, value, false, transcoder), timeout); }
public <T> void addWithNoReply(String key, int exp, T value, Transcoder<T> transcoder) throws InterruptedException, MemcachedException { key = this.preProcessKey(key); byte[] keyBytes = this.checkStoreArguments(key, exp, value); try { this.sendStoreCommand( this.commandFactory.createAddCommand(key, keyBytes, exp, value, true, transcoder), this.opTimeout); } catch (TimeoutException e) { throw new MemcachedException(e); } }