增加redis命令枚举值

This commit is contained in:
白茶清欢 2024-10-08 16:41:26 +08:00
parent c865046cd9
commit 0b1c661317

30
redis.go Normal file
View File

@ -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"
)