README ¶ goto reidsx 对 go-redis 的使用整合 redis链接 url="redis://:root@localhost:6379/0" 关闭redisCli 使用 func (c *redisCli) Close(ctx context.Context, wg *sync.WaitGroup) 进行优雅关闭 Expand ▾ Collapse ▴ Documentation ¶ Index ¶ type Redisx func New(conf *configx.Configx, logCli logx.Logger) (*Redisx, error) func (c *Redisx) Close(ctx context.Context, wg *sync.WaitGroup) func (c *Redisx) DB() *redis.Client func (c *Redisx) Name() string Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Redisx ¶ type Redisx struct { // contains filtered or unexported fields } func New ¶ func New(conf *configx.Configx, logCli logx.Logger) (*Redisx, error) func (*Redisx) Close ¶ func (c *Redisx) Close(ctx context.Context, wg *sync.WaitGroup) func (*Redisx) DB ¶ func (c *Redisx) DB() *redis.Client func (*Redisx) Name ¶ func (c *Redisx) Name() string Source Files ¶ View all Source files redis.go Click to show internal directories. Click to hide internal directories.