修复RedisCommand BUG + 增加单元测试

This commit is contained in:
2025-04-20 13:40:39 +08:00
parent 653843dc02
commit 299edfcc9a
4 changed files with 49 additions and 2 deletions

View File

@ -17,7 +17,7 @@ func (rc *RedisCmd) MarshalJSON() ([]byte, error) {
return []byte(rc.String()), nil
}
const (
var (
RedisCommandExists RedisCmd = "EXISTS"
RedisCommandTTL RedisCmd = "TTL"
RedisCommandSet RedisCmd = "SET"