@@ -40,7 +40,7 @@ type SessionStore struct {
4040// NewRedisSessionStore initialises a new instance of the SessionStore from
4141// the configuration given
4242func NewRedisSessionStore(opts *options.SessionOptions, cookieOpts *options.CookieOptions) (sessions.SessionStore, error) {
43− client, err := newRedisCmdable(opts.RedisStoreOptions)
43+ client, err := newRedisCmdable(opts.Redis)
4444 if err != nil {
4545 return nil, fmt.Errorf("error constructing redis client: %v", err)
4646 }
@@ -74,16 +74,16 @@ func newRedisCmdable(opts options.RedisStoreOptions) (Client, error) {
7474 return newClusterClient(client), nil
7575 }
7676
77− opt, err := redis.ParseURL(opts.RedisConnectionURL)
77+ opt, err := redis.ParseURL(opts.ConnectionURL)
7878 if err != nil {
7979 return nil, fmt.Errorf("unable to parse redis url: %s", err)
8080 }
8181
82− if opts.RedisInsecureTLS {
82+ if opts.InsecureSkipTLSVerify {
8383 opt.TLSConfig.InsecureSkipVerify = true
8484 }
8585
86− if opts.RedisCAPath != "" {
86+ if opts.CAPath != "" {
8787 rootCAs, err := x509.SystemCertPool()
8888 if err != nil {
8989 logger.Printf("failed to load system cert pool for redis connection, falling back to empty cert pool")
@@ -91,9 +91,9 @@ func newRedisCmdable(opts options.RedisStoreOptions) (Client, error) {
9191 if rootCAs == nil {
9292 rootCAs = x509.NewCertPool()
9393 }
94− certs, err := ioutil.ReadFile(opts.RedisCAPath)
94+ certs, err := ioutil.ReadFile(opts.CAPath)
9595 if err != nil {
96− return nil, fmt.Errorf("failed to load %q, %v", opts.RedisCAPath, err)
96+ return nil, fmt.Errorf("failed to load %q, %v", opts.CAPath, err)
9797 }
9898
9999 // Append our cert to the system pool