Added DEL command for deleting keys from the store

This commit is contained in:
Kelvin Mwinuka
2024-03-08 22:49:03 +08:00
parent e34ed74e3f
commit 0b90c9343e
6 changed files with 280 additions and 226 deletions

View File

@@ -38,3 +38,10 @@ func mgetKeyFunc(cmd []string) ([]string, error) {
}
return cmd[1:], nil
}
func delKeyFunc(cmd []string) ([]string, error) {
if len(cmd) < 2 {
return nil, errors.New(utils.WrongArgsResponse)
}
return cmd[1:], nil
}