in folsom/src/main/java/com/spotify/folsom/client/ascii/DeleteWithCasRequest.java [66:86]
public void handle(final AsciiResponse response, final HostAndPort server) throws IOException {
switch (response.type) {
case STORED:
succeed(MemcacheStatus.OK);
return;
case EXISTS:
succeed(MemcacheStatus.KEY_EXISTS);
return;
case NOT_FOUND:
succeed(MemcacheStatus.KEY_NOT_FOUND);
return;
case CLIENT_ERROR:
MemcacheAuthenticationException exception =
new MemcacheAuthenticationException(
"Authentication required by server. Client not authenticated.");
fail(exception, server);
return;
default:
throw new IOException("Unexpected line: " + response.type);
}
}