Add DB field to RedisOpt to specify redis db index

This commit is contained in:
Ken Hibino
2019-11-24 18:41:55 -08:00
parent d5c2b9b995
commit f91004e6aa
3 changed files with 13 additions and 2 deletions

View File

@@ -54,4 +54,7 @@ type taskMessage struct {
type RedisOpt struct {
Addr string
Password string
// DB specifies which redis database to select.
DB int
}