Update Hash to allow for expirey commands (#146)

* Convert hash to composite type. Fixed broken Hash commands from Hash refactor. Coverage and fixed broken test - @osteensco
This commit is contained in:
osteensco
2024-11-03 13:24:31 -06:00
committed by GitHub
parent 05b7601752
commit 09640082c4
8 changed files with 3577 additions and 3517 deletions

View File

@@ -813,7 +813,11 @@ func handleType(params internal.HandlerFuncParams) ([]byte, error) {
case reflect.Slice:
type_string = "list"
case reflect.Map:
type_string = "hash"
if t.Elem().Name() == "HashValue" {
type_string = "hash"
} else {
type_string = t.Elem().Name()
}
case reflect.Pointer:
if t.Elem().Name() == "Set" {
type_string = "set"