@Override public Boolean transform(MemcacheSetResponse response) {
if (response.getSetStatusCount() != 1) {
throw new MemcacheServiceException("Memcache put: Set one item, got "
+ response.getSetStatusCount() + " response statuses");
}
SetStatusCode status = response.getSetStatus(0);
if (status == SetStatusCode.ERROR) {
throw new MemcacheServiceException(
"Memcache put: Error setting single item (" + key + ")");
}
return status == SetStatusCode.STORED;