return this.set(key, raw, FOREVER);
}
public boolean set(String key, byte[] raw, int exp) throws KeyValueStoreClientException {
if (!isAlive()) {
throw(new KeyValueStoreClientException(new IllegalStateException("client not established")));
}
boolean result;
try {
Future<Boolean> f = _client.set(key, exp, raw, _transcoder);
result = f.get(_timeoutInMs, TimeUnit.MILLISECONDS);
} catch (Exception error) {
throw(new KeyValueStoreClientException(error));
}
return result;
}