diff --git a/internal/hscan/structmap.go b/internal/hscan/structmap.go index 1a560e4a..408ce0e4 100644 --- a/internal/hscan/structmap.go +++ b/internal/hscan/structmap.go @@ -109,6 +109,8 @@ func (s StructValue) Scan(key string, value string) error { return scan.ScanRedis(value) case encoding.TextUnmarshaler: return scan.UnmarshalText(util.StringToBytes(value)) + case encoding.BinaryUnmarshaler: + return scan.UnmarshalBinary(util.StringToBytes(value)) } }