PragmaTwice opened a new pull request, #1858:
URL: https://github.com/apache/kvrocks/pull/1858

   Class outline:
   ```c++
   struct CommandTable {
    public:
     CommandTable() = delete;
   
     static CommandMap *Get();
     static const CommandMap *GetOriginal();
     static void Reset();
   
     static void GetAllCommandsInfo(std::string *info);
     static void GetCommandsInfo(std::string *info, const 
std::vector<std::string> &cmd_names);
     static std::string GetCommandInfo(const CommandAttributes 
*command_attributes);
     static Status GetKeysFromCommand(const CommandAttributes *attributes, 
const std::vector<std::string> &cmd_tokens,
                                      std::vector<int> *keys_indexes);
   
     static size_t Size();
     static bool IsExists(const std::string &name);
   
     static Status ParseSlotRanges(const std::string &slots_str, 
std::vector<SlotRange> &slots);
   
    private:
     static inline std::deque<CommandAttributes> redis_command_table;
   
     // Original Command table before rename-command directive
     static inline CommandMap original_commands;
   
     // Command table after rename-command directive
     static inline CommandMap commands;
   
     friend struct RegisterToCommandTable;
   };
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to