File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -14,21 +14,22 @@ $ go get -u -v gopkg.in/go-oauth2/redis.v3
14
14
package main
15
15
16
16
import (
17
- " gopkg.in/go-oauth2/redis.v3"
17
+ " github.com/go-redis/redis"
18
+ oredis " gopkg.in/go-oauth2/redis.v3"
18
19
" gopkg.in/oauth2.v3/manage"
19
20
)
20
21
21
22
func main () {
22
23
manager := manage.NewDefaultManager ()
23
24
24
25
// use redis token store
25
- manager.MapTokenStorage (redis .NewRedisStore (&redis.Options {
26
+ manager.MapTokenStorage (oredis .NewRedisStore (&redis.Options {
26
27
Addr: " 127.0.0.1:6379" ,
27
28
DB: 15 ,
28
29
}))
29
30
30
31
// use redis cluster store
31
- // manager.MapTokenStorage(redis .NewRedisClusterStore(&redis.ClusterOptions{
32
+ // manager.MapTokenStorage(oredis .NewRedisClusterStore(&redis.ClusterOptions{
32
33
// Addrs: []string{"127.0.0.1:6379"},
33
34
// DB: 15,
34
35
// }))
You can’t perform that action at this time.
0 commit comments