class SetCommand implements CommandRunnable {

    @Override
    public ReplyMessage run(int argc, byte[][] argv) throws Exception {
        if (argc != 3) {
            return ErrorMessage.WrongArgcMessage;
        }

        String key = new String(argv[1], Protocol.KEYCAFE_CHARSET);
        String val = new String(argv[2], Protocol.KEYCAFE_CHARSET);
        kvMap.put(key, val);
        logger.info("set key: {} - result: {}", key, val);
        tMap.put(key, System.currentTimeMillis());

        return StringMessage.OkMessage;
    }

    public  SetCommand(Map<String, String> kvMap, Map<String, Long> tMap);

}