Pinning code

This commit is contained in:
Pavel Shevaev 2022-10-25 18:42:46 +03:00
parent c8376b3ef8
commit 4268ffbe6d
16 changed files with 34 additions and 32 deletions

View File

@ -6,25 +6,25 @@ Redigo is a [Go](http://golang.org/) client for the [Redis](http://redis.io/) da
Features
-------
* A [Print-like](http://godoc.org/github.com/garyburd/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.
* [Publish/Subscribe](http://godoc.org/github.com/garyburd/redigo/redis#hdr-Publish_and_Subscribe).
* [Connection pooling](http://godoc.org/github.com/garyburd/redigo/redis#Pool).
* [Script helper type](http://godoc.org/github.com/garyburd/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.
* 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/git.bit5.ru/backend/redigo/redis#hdr-Pipelining), including pipelined transactions.
* [Publish/Subscribe](http://godoc.org/git.bit5.ru/backend/redigo/redis#hdr-Publish_and_Subscribe).
* [Connection pooling](http://godoc.org/git.bit5.ru/backend/redigo/redis#Pool).
* [Script helper type](http://godoc.org/git.bit5.ru/backend/redigo/redis#Script) with optimistic use of EVALSHA.
* [Helper functions](http://godoc.org/git.bit5.ru/backend/redigo/redis#hdr-Reply_Helpers) for working with command replies.
Documentation
-------------
- [API Reference](http://godoc.org/github.com/garyburd/redigo/redis)
- [FAQ](https://github.com/garyburd/redigo/wiki/FAQ)
- [API Reference](http://godoc.org/git.bit5.ru/backend/redigo/redis)
- [FAQ](https://git.bit5.ru/backend/redigo/wiki/FAQ)
Installation
------------
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.

0
go.sum Normal file
View File

View File

@ -12,7 +12,7 @@
// License for the specific language governing permissions and limitations
// under the License.
package internal // import "github.com/garyburd/redigo/internal"
package internal // import "git.bit5.ru/backend/redigo/internal"
import (
"strings"

View File

@ -19,7 +19,7 @@ import (
"errors"
"time"
"github.com/garyburd/redigo/redis"
"git.bit5.ru/backend/redigo/redis"
)
type testConn struct {

View File

@ -24,8 +24,8 @@ import (
"testing"
"time"
"github.com/garyburd/redigo/internal/redistest"
"github.com/garyburd/redigo/redis"
"git.bit5.ru/backend/redigo/internal/redistest"
"git.bit5.ru/backend/redigo/redis"
)
var writeTests = []struct {

View File

@ -14,7 +14,7 @@
// 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.
//
// Connections
@ -166,4 +166,4 @@
// if _, err := redis.Scan(reply, &value1, &value2); err != nil {
// // handle error
// }
package redis // import "github.com/garyburd/redigo/redis"
package redis // import "git.bit5.ru/backend/redigo/redis"

View File

@ -25,7 +25,7 @@ import (
"sync"
"time"
"github.com/garyburd/redigo/internal"
"git.bit5.ru/backend/redigo/internal"
)
var nowFunc = time.Now // for testing

View File

@ -22,8 +22,8 @@ import (
"testing"
"time"
"github.com/garyburd/redigo/internal/redistest"
"github.com/garyburd/redigo/redis"
"git.bit5.ru/backend/redigo/internal/redistest"
"git.bit5.ru/backend/redigo/redis"
)
type poolTestConn struct {

View File

@ -22,8 +22,8 @@ import (
"testing"
"time"
"github.com/garyburd/redigo/internal/redistest"
"github.com/garyburd/redigo/redis"
"git.bit5.ru/backend/redigo/internal/redistest"
"git.bit5.ru/backend/redigo/redis"
)
func publish(channel, value interface{}) {

View File

@ -19,8 +19,8 @@ import (
"reflect"
"testing"
"github.com/garyburd/redigo/internal/redistest"
"github.com/garyburd/redigo/redis"
"git.bit5.ru/backend/redigo/internal/redistest"
"git.bit5.ru/backend/redigo/redis"
)
type valueError struct {

View File

@ -16,10 +16,11 @@ package redis_test
import (
"fmt"
"github.com/garyburd/redigo/redis"
"math"
"reflect"
"testing"
"git.bit5.ru/backend/redigo/redis"
)
var scanConversionTests = []struct {

View File

@ -20,8 +20,8 @@ import (
"testing"
"time"
"github.com/garyburd/redigo/internal/redistest"
"github.com/garyburd/redigo/redis"
"git.bit5.ru/backend/redigo/internal/redistest"
"git.bit5.ru/backend/redigo/redis"
)
func ExampleScript(c redis.Conn, reply interface{}, err error) {

View File

@ -16,7 +16,8 @@ package redis_test
import (
"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.

View File

@ -18,8 +18,8 @@ import (
"errors"
"sync"
"github.com/garyburd/redigo/internal"
"github.com/garyburd/redigo/redis"
"git.bit5.ru/backend/redigo/internal"
"git.bit5.ru/backend/redigo/redis"
)
// ConnMux multiplexes one or more connections to a single underlying

View File

@ -19,9 +19,9 @@ import (
"sync"
"testing"
"github.com/garyburd/redigo/internal/redistest"
"github.com/garyburd/redigo/redis"
"github.com/garyburd/redigo/redisx"
"git.bit5.ru/backend/redigo/internal/redistest"
"git.bit5.ru/backend/redigo/redis"
"git.bit5.ru/backend/redigo/redisx"
)
func TestConnMux(t *testing.T) {

View File

@ -14,4 +14,4 @@
// Package redisx contains experimental features for Redigo. Features in this
// 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"