in folsom/src/main/java/com/spotify/folsom/client/ascii/TouchRequest.java [54:68]
protected void handle(final AsciiResponse response, final HostAndPort server) throws IOException {
AsciiResponse.Type type = response.type;
if (type == AsciiResponse.Type.TOUCHED) {
succeed(MemcacheStatus.OK);
} else if (type == AsciiResponse.Type.NOT_FOUND) {
succeed(MemcacheStatus.KEY_NOT_FOUND);
} else if (type == AsciiResponse.Type.CLIENT_ERROR) {
MemcacheAuthenticationException exception =
new MemcacheAuthenticationException(
"Authentication required by server. Client not authenticated.");
fail(exception, server);
} else {
throw new IOException("Unexpected line: " + type);
}
}