garnet
garnet copied to clipboard
Add Arity Checks for Command Parameters in Garnet
It has been noticed that the current implementation of checking parameters in each command is independent. Furthermore, some commands were previously implemented incorrectly and did not drain commands as they were supposed to, but this has been fixed as mentioned in https://github.com/microsoft/garnet/pull/103/files.
However, it is still necessary to check the parameters for each command that may be constrained by arity.
Therefore, this pull request adds an arity check for each command.