com.github.tonivade.resp.command.NullCommand Maven / Gradle / Ivy
/*
* Copyright (c) 2015-2018, Antonio Gabriel Muñoz Conejo
* Distributed under the terms of the MIT License
*/
package com.github.tonivade.resp.command;
import static com.github.tonivade.resp.protocol.RedisToken.error;
import com.github.tonivade.resp.protocol.RedisToken;
class NullCommand implements RespCommand {
@Override
public RedisToken execute(Request request) {
return error("ERR unknown command '" + request.getCommand() + "'");
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy