From 0b1c661317ee6de2f64f6427896479180c4d24a2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=99=BD=E8=8C=B6=E6=B8=85=E6=AC=A2?= Date: Tue, 8 Oct 2024 16:41:26 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0redis=E5=91=BD=E4=BB=A4?= =?UTF-8?q?=E6=9E=9A=E4=B8=BE=E5=80=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- redis.go | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 redis.go diff --git a/redis.go b/redis.go new file mode 100644 index 0000000..67d99e1 --- /dev/null +++ b/redis.go @@ -0,0 +1,30 @@ +// Package consts ... +// +// Description : consts ... +// +// Author : go_developer@163.com<白茶清欢> +// +// Date : 2024-10-08 16:32 +package consts + +const ( + RedisCommandSet = "SET" + RedisCommandDel = "DEL" + RedisCommandGet = "GET" + RedisCommandMGet = "MGET" + RedisCommandMSet = "MSET" + RedisCommandLpush = "LPUSH" + RedisCommandLpop = "LPOP" + RedisCommandRpush = "RPUSH" + RedisCommandRpop = "RPOP" + RedisCommandSadd = "SADD" + RedisCommandSunionstore = "SUNIONSTORE" + RedisCommandZadd = "ZADD" + RedisCommandZincrby = "ZINCRBY" + RedisCommandPsubScribe = "PSUBSCRIBE" + RedisCommandPubsub = "PUBSUB" + RedisCommandPublish = "PUBLISH" + RedisCommandPunsubScribe = "PUNSUBSCRIBE" + RedisCommandSubscribe = "SUBSCRIBE" + RedisCommandUnsubscribe = "UNSUBSCRIBE" +)