in simplestore/src/main/java/com/uber/simplestore/impl/SimpleStoreImpl.java [92:100]
public ListenableFuture<String> putString(String key, @Nullable String value) {
byte[] bytes;
if (value == null || value.isEmpty()) {
bytes = null;
} else {
bytes = value.getBytes(STRING_ENCODING);
}
return Futures.transform(put(key, bytes), (b) -> value, MoreExecutors.directExecutor());
}