File tree Expand file tree Collapse file tree 3 files changed +10
-3
lines changed
Expand file tree Collapse file tree 3 files changed +10
-3
lines changed Original file line number Diff line number Diff line change 1+ language : go
2+
3+ before_install :
4+ - sudo add-apt-repository ppa:chris-lea/redis-server
5+ - sudo apt-get -qq update
6+ - sudo apt-get install -y redis-server
Original file line number Diff line number Diff line change @@ -3,12 +3,13 @@ Redis Token Store
33
44[ ![ GoDoc] ( https://godoc.org/github.com/go-oauth2/redis?status.svg )] ( https://godoc.org/github.com/go-oauth2/redis )
55[ ![ Go Report Card] ( https://goreportcard.com/badge/github.com/go-oauth2/redis )] ( https://goreportcard.com/report/github.com/go-oauth2/redis )
6+ [ ![ Build Status] ( https://travis-ci.org/go-oauth2/redis.svg?branch=master )] ( https://travis-ci.org/go-oauth2/redis )
67
78Install
89-------
910
1011``` bash
11- $ go get -v github.com/go-oauth2/redis
12+ $ go get -u - v github.com/go-oauth2/redis
1213```
1314
1415Usage
@@ -26,7 +27,7 @@ func main() {
2627 manager := manage.NewDefaultManager ()
2728 // use redis store
2829 manager.MustTokenStorage (redis.NewStore (&redis.Config {
29- Addr: " 192.168.33.70 :6379" ,
30+ Addr: " 127.0.0.1 :6379" ,
3031 }))
3132
3233 // ...
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ import (
1313func TestStore (t * testing.T ) {
1414 Convey ("Test redis store" , t , func () {
1515 cfg := & redis.Config {
16- Addr : "192.168.33.70 :6379" ,
16+ Addr : "127.0.0.1 :6379" ,
1717 }
1818 store , err := redis .NewStore (cfg )
1919 So (err , ShouldBeNil )
You can’t perform that action at this time.
0 commit comments