github.com/binbinly/pkg@v0.0.11-0.20240321014439-f4fbf666eb0f/storage/redis/config.go (about)

     1  package redis
     2  
     3  import "time"
     4  
     5  // Config redis config
     6  type Config struct {
     7  	Url          string
     8  	Addr         string
     9  	Username     string
    10  	Password     string
    11  	DB           int
    12  	MinIdleConn  int
    13  	PoolSize     int
    14  	DialTimeout  time.Duration
    15  	ReadTimeout  time.Duration
    16  	WriteTimeout time.Duration
    17  	PoolTimeout  time.Duration
    18  	Trace        bool
    19  }