forked from go-session/redis
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathoptions.go
49 lines (45 loc) · 1.56 KB
/
options.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
package redis
// import (
// "github.com/go-redis/redis"
// )
// func (o *redis.Options) redisOptions() *redis.Options {
// return &redis.Options{
// Network: o.Network,
// Addr: o.Addr,
// Dialer: o.Dialer,
// Password: o.Password,
// DB: o.DB,
// MaxRetries: o.MaxRetries,
// MinRetryBackoff: o.MinRetryBackoff,
// MaxRetryBackoff: o.MaxRetryBackoff,
// DialTimeout: o.DialTimeout,
// ReadTimeout: o.ReadTimeout,
// WriteTimeout: o.WriteTimeout,
// PoolSize: o.PoolSize,
// PoolTimeout: o.PoolTimeout,
// IdleTimeout: o.IdleTimeout,
// IdleCheckFrequency: o.IdleCheckFrequency,
// TLSConfig: o.TLSConfig,
// }
// }
// func (o *redis.ClusterOptions) redisClusterOptions() *redis.ClusterOptions {
// return &redis.ClusterOptions{
// Addrs: o.Addrs,
// MaxRedirects: o.MaxRedirects,
// ReadOnly: o.ReadOnly,
// RouteByLatency: o.RouteByLatency,
// RouteRandomly: o.RouteRandomly,
// OnConnect: o.OnConnect,
// MaxRetries: o.MaxRetries,
// MinRetryBackoff: o.MinRetryBackoff,
// MaxRetryBackoff: o.MaxRetryBackoff,
// Password: o.Password,
// DialTimeout: o.DialTimeout,
// ReadTimeout: o.ReadTimeout,
// WriteTimeout: o.WriteTimeout,
// PoolSize: o.PoolSize,
// PoolTimeout: o.PoolTimeout,
// IdleTimeout: o.IdleTimeout,
// IdleCheckFrequency: o.IdleCheckFrequency,
// }
// }