redis db
This commit is contained in:
parent
fa0bd7bc62
commit
6bccfe3d82
|
|
@ -42,7 +42,7 @@ func buildRdb(c *conf.Data_Redis) (*redis.Client, error) {
|
||||||
PoolSize: int(c.PoolSize),
|
PoolSize: int(c.PoolSize),
|
||||||
MinIdleConns: int(c.MinIdleConns),
|
MinIdleConns: int(c.MinIdleConns),
|
||||||
ConnMaxIdleTime: c.ConnMaxIdleTime.AsDuration(),
|
ConnMaxIdleTime: c.ConnMaxIdleTime.AsDuration(),
|
||||||
DB: 0,
|
DB: int(c.Db),
|
||||||
})
|
})
|
||||||
|
|
||||||
_, err := rdb.Ping(context.Background()).Result()
|
_, err := rdb.Ping(context.Background()).Result()
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue