Pinning code
This commit is contained in:
parent
c8376b3ef8
commit
4268ffbe6d
|
@ -6,25 +6,25 @@ Redigo is a [Go](http://golang.org/) client for the [Redis](http://redis.io/) da
|
||||||
Features
|
Features
|
||||||
-------
|
-------
|
||||||
|
|
||||||
* A [Print-like](http://godoc.org/github.com/garyburd/redigo/redis#hdr-Executing_Commands) API with support for all Redis commands.
|
* A [Print-like](http://godoc.org/git.bit5.ru/backend/redigo/redis#hdr-Executing_Commands) API with support for all Redis commands.
|
||||||
* [Pipelining](http://godoc.org/github.com/garyburd/redigo/redis#hdr-Pipelining), including pipelined transactions.
|
* [Pipelining](http://godoc.org/git.bit5.ru/backend/redigo/redis#hdr-Pipelining), including pipelined transactions.
|
||||||
* [Publish/Subscribe](http://godoc.org/github.com/garyburd/redigo/redis#hdr-Publish_and_Subscribe).
|
* [Publish/Subscribe](http://godoc.org/git.bit5.ru/backend/redigo/redis#hdr-Publish_and_Subscribe).
|
||||||
* [Connection pooling](http://godoc.org/github.com/garyburd/redigo/redis#Pool).
|
* [Connection pooling](http://godoc.org/git.bit5.ru/backend/redigo/redis#Pool).
|
||||||
* [Script helper type](http://godoc.org/github.com/garyburd/redigo/redis#Script) with optimistic use of EVALSHA.
|
* [Script helper type](http://godoc.org/git.bit5.ru/backend/redigo/redis#Script) with optimistic use of EVALSHA.
|
||||||
* [Helper functions](http://godoc.org/github.com/garyburd/redigo/redis#hdr-Reply_Helpers) for working with command replies.
|
* [Helper functions](http://godoc.org/git.bit5.ru/backend/redigo/redis#hdr-Reply_Helpers) for working with command replies.
|
||||||
|
|
||||||
Documentation
|
Documentation
|
||||||
-------------
|
-------------
|
||||||
|
|
||||||
- [API Reference](http://godoc.org/github.com/garyburd/redigo/redis)
|
- [API Reference](http://godoc.org/git.bit5.ru/backend/redigo/redis)
|
||||||
- [FAQ](https://github.com/garyburd/redigo/wiki/FAQ)
|
- [FAQ](https://git.bit5.ru/backend/redigo/wiki/FAQ)
|
||||||
|
|
||||||
Installation
|
Installation
|
||||||
------------
|
------------
|
||||||
|
|
||||||
Install Redigo using the "go get" command:
|
Install Redigo using the "go get" command:
|
||||||
|
|
||||||
go get github.com/garyburd/redigo/redis
|
go get git.bit5.ru/backend/redigo/redis
|
||||||
|
|
||||||
The Go distribution is Redigo's only dependency.
|
The Go distribution is Redigo's only dependency.
|
||||||
|
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
// License for the specific language governing permissions and limitations
|
// License for the specific language governing permissions and limitations
|
||||||
// under the License.
|
// under the License.
|
||||||
|
|
||||||
package internal // import "github.com/garyburd/redigo/internal"
|
package internal // import "git.bit5.ru/backend/redigo/internal"
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"strings"
|
"strings"
|
||||||
|
|
|
@ -19,7 +19,7 @@ import (
|
||||||
"errors"
|
"errors"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/garyburd/redigo/redis"
|
"git.bit5.ru/backend/redigo/redis"
|
||||||
)
|
)
|
||||||
|
|
||||||
type testConn struct {
|
type testConn struct {
|
||||||
|
|
|
@ -24,8 +24,8 @@ import (
|
||||||
"testing"
|
"testing"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/garyburd/redigo/internal/redistest"
|
"git.bit5.ru/backend/redigo/internal/redistest"
|
||||||
"github.com/garyburd/redigo/redis"
|
"git.bit5.ru/backend/redigo/redis"
|
||||||
)
|
)
|
||||||
|
|
||||||
var writeTests = []struct {
|
var writeTests = []struct {
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
|
|
||||||
// Package redis is a client for the Redis database.
|
// Package redis is a client for the Redis database.
|
||||||
//
|
//
|
||||||
// The Redigo FAQ (https://github.com/garyburd/redigo/wiki/FAQ) contains more
|
// The Redigo FAQ (https://git.bit5.ru/backend/redigo/wiki/FAQ) contains more
|
||||||
// documentation about this package.
|
// documentation about this package.
|
||||||
//
|
//
|
||||||
// Connections
|
// Connections
|
||||||
|
@ -166,4 +166,4 @@
|
||||||
// if _, err := redis.Scan(reply, &value1, &value2); err != nil {
|
// if _, err := redis.Scan(reply, &value1, &value2); err != nil {
|
||||||
// // handle error
|
// // handle error
|
||||||
// }
|
// }
|
||||||
package redis // import "github.com/garyburd/redigo/redis"
|
package redis // import "git.bit5.ru/backend/redigo/redis"
|
||||||
|
|
|
@ -25,7 +25,7 @@ import (
|
||||||
"sync"
|
"sync"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/garyburd/redigo/internal"
|
"git.bit5.ru/backend/redigo/internal"
|
||||||
)
|
)
|
||||||
|
|
||||||
var nowFunc = time.Now // for testing
|
var nowFunc = time.Now // for testing
|
||||||
|
|
|
@ -22,8 +22,8 @@ import (
|
||||||
"testing"
|
"testing"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/garyburd/redigo/internal/redistest"
|
"git.bit5.ru/backend/redigo/internal/redistest"
|
||||||
"github.com/garyburd/redigo/redis"
|
"git.bit5.ru/backend/redigo/redis"
|
||||||
)
|
)
|
||||||
|
|
||||||
type poolTestConn struct {
|
type poolTestConn struct {
|
||||||
|
|
|
@ -22,8 +22,8 @@ import (
|
||||||
"testing"
|
"testing"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/garyburd/redigo/internal/redistest"
|
"git.bit5.ru/backend/redigo/internal/redistest"
|
||||||
"github.com/garyburd/redigo/redis"
|
"git.bit5.ru/backend/redigo/redis"
|
||||||
)
|
)
|
||||||
|
|
||||||
func publish(channel, value interface{}) {
|
func publish(channel, value interface{}) {
|
||||||
|
|
|
@ -19,8 +19,8 @@ import (
|
||||||
"reflect"
|
"reflect"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/garyburd/redigo/internal/redistest"
|
"git.bit5.ru/backend/redigo/internal/redistest"
|
||||||
"github.com/garyburd/redigo/redis"
|
"git.bit5.ru/backend/redigo/redis"
|
||||||
)
|
)
|
||||||
|
|
||||||
type valueError struct {
|
type valueError struct {
|
||||||
|
|
|
@ -16,10 +16,11 @@ package redis_test
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"github.com/garyburd/redigo/redis"
|
|
||||||
"math"
|
"math"
|
||||||
"reflect"
|
"reflect"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
|
"git.bit5.ru/backend/redigo/redis"
|
||||||
)
|
)
|
||||||
|
|
||||||
var scanConversionTests = []struct {
|
var scanConversionTests = []struct {
|
||||||
|
|
|
@ -20,8 +20,8 @@ import (
|
||||||
"testing"
|
"testing"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/garyburd/redigo/internal/redistest"
|
"git.bit5.ru/backend/redigo/internal/redistest"
|
||||||
"github.com/garyburd/redigo/redis"
|
"git.bit5.ru/backend/redigo/redis"
|
||||||
)
|
)
|
||||||
|
|
||||||
func ExampleScript(c redis.Conn, reply interface{}, err error) {
|
func ExampleScript(c redis.Conn, reply interface{}, err error) {
|
||||||
|
|
|
@ -16,7 +16,8 @@ package redis_test
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"github.com/garyburd/redigo/redis"
|
|
||||||
|
"git.bit5.ru/backend/redigo/redis"
|
||||||
)
|
)
|
||||||
|
|
||||||
// zpop pops a value from the ZSET key using WATCH/MULTI/EXEC commands.
|
// zpop pops a value from the ZSET key using WATCH/MULTI/EXEC commands.
|
||||||
|
|
|
@ -18,8 +18,8 @@ import (
|
||||||
"errors"
|
"errors"
|
||||||
"sync"
|
"sync"
|
||||||
|
|
||||||
"github.com/garyburd/redigo/internal"
|
"git.bit5.ru/backend/redigo/internal"
|
||||||
"github.com/garyburd/redigo/redis"
|
"git.bit5.ru/backend/redigo/redis"
|
||||||
)
|
)
|
||||||
|
|
||||||
// ConnMux multiplexes one or more connections to a single underlying
|
// ConnMux multiplexes one or more connections to a single underlying
|
||||||
|
|
|
@ -19,9 +19,9 @@ import (
|
||||||
"sync"
|
"sync"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/garyburd/redigo/internal/redistest"
|
"git.bit5.ru/backend/redigo/internal/redistest"
|
||||||
"github.com/garyburd/redigo/redis"
|
"git.bit5.ru/backend/redigo/redis"
|
||||||
"github.com/garyburd/redigo/redisx"
|
"git.bit5.ru/backend/redigo/redisx"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestConnMux(t *testing.T) {
|
func TestConnMux(t *testing.T) {
|
||||||
|
|
|
@ -14,4 +14,4 @@
|
||||||
|
|
||||||
// Package redisx contains experimental features for Redigo. Features in this
|
// Package redisx contains experimental features for Redigo. Features in this
|
||||||
// package may be modified or deleted at any time.
|
// package may be modified or deleted at any time.
|
||||||
package redisx // import "github.com/garyburd/redigo/redisx"
|
package redisx // import "git.bit5.ru/backend/redigo/redisx"
|
||||||
|
|
Loading…
Reference in New Issue