mirror of
https://github.com/EchoVault/SugarDB.git
synced 2025-10-06 16:36:54 +08:00
Added DEL command for deleting keys from the store
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user