From 6df87081a472e9b31941383803fe5f3e96389476 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=99=BD=E8=8C=B6=E6=B8=85=E6=AC=A2?= Date: Sun, 20 Apr 2025 18:13:56 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=20RedisCmd=20MarshalBinary?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- redis.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/redis.go b/redis.go index 3e78c85..53d66e7 100644 --- a/redis.go +++ b/redis.go @@ -18,7 +18,7 @@ func (rc RedisCmd) MarshalJSON() ([]byte, error) { } func (rc RedisCmd) MarshalBinary() ([]byte, error) { - return rc.MarshalJSON() + return []byte(rc.String()), nil } const (