feat: 增加redis命令定义
This commit is contained in:
@@ -22,30 +22,35 @@ func (rc RedisCmd) MarshalBinary() ([]byte, error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const (
|
const (
|
||||||
RedisCommandExists RedisCmd = "EXISTS"
|
RedisCommandExists RedisCmd = "EXISTS"
|
||||||
RedisCommandTTL RedisCmd = "TTL"
|
RedisCommandTTL RedisCmd = "TTL"
|
||||||
RedisCommandSet RedisCmd = "SET"
|
RedisCommandSet RedisCmd = "SET"
|
||||||
RedisCommandDel RedisCmd = "DEL"
|
RedisCommandDel RedisCmd = "DEL"
|
||||||
RedisCommandGet RedisCmd = "GET"
|
RedisCommandGet RedisCmd = "GET"
|
||||||
RedisCommandHget RedisCmd = "HGET"
|
RedisCommandHget RedisCmd = "HGET"
|
||||||
RedisCommandHset RedisCmd = "HSET"
|
RedisCommandHset RedisCmd = "HSET"
|
||||||
RedisCommandHdel RedisCmd = "HDEL"
|
RedisCommandHdel RedisCmd = "HDEL"
|
||||||
RedisCommandMGet RedisCmd = "MGET"
|
RedisCommandMGet RedisCmd = "MGET"
|
||||||
RedisCommandMSet RedisCmd = "MSET"
|
RedisCommandMSet RedisCmd = "MSET"
|
||||||
RedisCommandLpush RedisCmd = "LPUSH"
|
RedisCommandLpush RedisCmd = "LPUSH"
|
||||||
RedisCommandLpop RedisCmd = "LPOP"
|
RedisCommandLpop RedisCmd = "LPOP"
|
||||||
RedisCommandRpush RedisCmd = "RPUSH"
|
RedisCommandRpush RedisCmd = "RPUSH"
|
||||||
RedisCommandRpop RedisCmd = "RPOP"
|
RedisCommandRpop RedisCmd = "RPOP"
|
||||||
RedisCommandBrpop RedisCmd = "BRPOP"
|
RedisCommandBrpop RedisCmd = "BRPOP"
|
||||||
RedisCommandBlpop RedisCmd = "BLPOP"
|
RedisCommandBlpop RedisCmd = "BLPOP"
|
||||||
RedisCommandSadd RedisCmd = "SADD"
|
RedisCommandSadd RedisCmd = "SADD"
|
||||||
RedisCommandSunionstore RedisCmd = "SUNIONSTORE"
|
RedisCommandSunionstore RedisCmd = "SUNIONSTORE"
|
||||||
RedisCommandZadd RedisCmd = "ZADD"
|
RedisCommandZadd RedisCmd = "ZADD"
|
||||||
RedisCommandZincrby RedisCmd = "ZINCRBY"
|
RedisCommandZincrby RedisCmd = "ZINCRBY"
|
||||||
RedisCommandPsubScribe RedisCmd = "PSUBSCRIBE"
|
RedisCommandPsubScribe RedisCmd = "PSUBSCRIBE"
|
||||||
RedisCommandPubsub RedisCmd = "PUBSUB"
|
RedisCommandPubsub RedisCmd = "PUBSUB"
|
||||||
RedisCommandPublish RedisCmd = "PUBLISH"
|
RedisCommandPublish RedisCmd = "PUBLISH"
|
||||||
RedisCommandPunsubScribe RedisCmd = "PUNSUBSCRIBE"
|
RedisCommandPunsubScribe RedisCmd = "PUNSUBSCRIBE"
|
||||||
RedisCommandSubscribe RedisCmd = "SUBSCRIBE"
|
RedisCommandSubscribe RedisCmd = "SUBSCRIBE"
|
||||||
RedisCommandUnsubscribe RedisCmd = "UNSUBSCRIBE"
|
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