feat: 增加redis命令定义
This commit is contained in:
@@ -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"
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user