mirror of
https://github.com/EchoVault/SugarDB.git
synced 2025-11-02 04:12:44 +08:00
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:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user