Open 0x090909 opened 2 years ago
Base: 82.74% // Head: 82.74% // No change to project coverage :thumbsup:
Coverage data is based on head (
c23ac3d
) compared to base (e83b198
). Patch coverage: 100.00% of modified lines in pull request are covered.
:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.
I had the need to specify the number of database for the redis connection, by default every client connects to the 0 database, but you can specify whatever integer you want according redigo documentation.
conn, err := redis.Dial("tcp", host)
becomes
conn, err := redis.Dial("tcp", host, redis.DialDatabase(dbNumber))
I thought this might be a useful feature for everybody so I decided to open this pull request.