From fb90982b12562bf12ee78d9a09052e1d36e324b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=99=BD=E8=8C=B6=E6=B8=85=E6=AC=A2?= Date: Mon, 13 Apr 2026 16:25:25 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=A2=9E=E5=8A=A0redis=E5=91=BD?= =?UTF-8?q?=E4=BB=A4=E5=AE=9A=E4=B9=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- redis.go | 57 ++++++++++++++++++++++++++++++-------------------------- 1 file changed, 31 insertions(+), 26 deletions(-) diff --git a/redis.go b/redis.go index 17b61a2..52b2725 100644 --- a/redis.go +++ b/redis.go @@ -22,30 +22,35 @@ func (rc RedisCmd) MarshalBinary() ([]byte, error) { } const ( - RedisCommandExists RedisCmd = "EXISTS" - RedisCommandTTL RedisCmd = "TTL" - RedisCommandSet RedisCmd = "SET" - RedisCommandDel RedisCmd = "DEL" - RedisCommandGet RedisCmd = "GET" - RedisCommandHget RedisCmd = "HGET" - RedisCommandHset RedisCmd = "HSET" - RedisCommandHdel RedisCmd = "HDEL" - RedisCommandMGet RedisCmd = "MGET" - RedisCommandMSet RedisCmd = "MSET" - RedisCommandLpush RedisCmd = "LPUSH" - RedisCommandLpop RedisCmd = "LPOP" - RedisCommandRpush RedisCmd = "RPUSH" - RedisCommandRpop RedisCmd = "RPOP" - RedisCommandBrpop RedisCmd = "BRPOP" - RedisCommandBlpop RedisCmd = "BLPOP" - RedisCommandSadd RedisCmd = "SADD" - RedisCommandSunionstore RedisCmd = "SUNIONSTORE" - RedisCommandZadd RedisCmd = "ZADD" - RedisCommandZincrby RedisCmd = "ZINCRBY" - RedisCommandPsubScribe RedisCmd = "PSUBSCRIBE" - RedisCommandPubsub RedisCmd = "PUBSUB" - RedisCommandPublish RedisCmd = "PUBLISH" - RedisCommandPunsubScribe RedisCmd = "PUNSUBSCRIBE" - RedisCommandSubscribe RedisCmd = "SUBSCRIBE" - RedisCommandUnsubscribe RedisCmd = "UNSUBSCRIBE" + RedisCommandExists RedisCmd = "EXISTS" + RedisCommandTTL RedisCmd = "TTL" + RedisCommandSet RedisCmd = "SET" + RedisCommandDel RedisCmd = "DEL" + RedisCommandGet RedisCmd = "GET" + RedisCommandHget RedisCmd = "HGET" + RedisCommandHset RedisCmd = "HSET" + RedisCommandHdel RedisCmd = "HDEL" + RedisCommandMGet RedisCmd = "MGET" + RedisCommandMSet RedisCmd = "MSET" + RedisCommandLpush RedisCmd = "LPUSH" + RedisCommandLpop RedisCmd = "LPOP" + RedisCommandRpush RedisCmd = "RPUSH" + RedisCommandRpop RedisCmd = "RPOP" + RedisCommandBrpop RedisCmd = "BRPOP" + RedisCommandBlpop RedisCmd = "BLPOP" + RedisCommandSadd RedisCmd = "SADD" + RedisCommandSunionstore RedisCmd = "SUNIONSTORE" + RedisCommandZadd RedisCmd = "ZADD" + RedisCommandZincrby RedisCmd = "ZINCRBY" + RedisCommandPsubScribe RedisCmd = "PSUBSCRIBE" + RedisCommandPubsub RedisCmd = "PUBSUB" + RedisCommandPublish RedisCmd = "PUBLISH" + RedisCommandPunsubScribe RedisCmd = "PUNSUBSCRIBE" + RedisCommandSubscribe RedisCmd = "SUBSCRIBE" + RedisCommandUnsubscribe RedisCmd = "UNSUBSCRIBE" + RedisCommandZrangeByScore RedisCmd = "ZRANGEByScore" + RedisCommandZRemRangeByScore RedisCmd = "ZRemRangeByScore" + RedisCommandDecr RedisCmd = "DECR" + RedisCommandIncr RedisCmd = "INCR" + RedisCommandXAdd RedisCmd = "XADD" )