Skip to content

Commit

Permalink
Updating
Browse files Browse the repository at this point in the history
  • Loading branch information
s-barr-fetch committed Feb 12, 2024
1 parent 8c35b9c commit f047de7
Show file tree
Hide file tree
Showing 54 changed files with 59 additions and 65 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ There are no dependencies on external binaries, so you can easily integrate it i

Be sure to import v2:
```
import "github.com/alicebob/miniredis/v2"
import "github.com/s-barr-fetch"
```

## Commands
Expand Down Expand Up @@ -257,7 +257,7 @@ Commands which use randomness are: RANDOMKEY, SPOP, and SRANDMEMBER.

import (
...
"github.com/alicebob/miniredis/v2"
"github.com/s-barr-fetch"
...
)

Expand Down Expand Up @@ -335,4 +335,4 @@ If you want to test Redis Sentinel have a look at [minisentinel](https://github.

A changelog is kept at [CHANGELOG.md](https://github.com/alicebob/miniredis/blob/master/CHANGELOG.md).

[![Go Reference](https://pkg.go.dev/badge/github.com/alicebob/miniredis/v2.svg)](https://pkg.go.dev/github.com/alicebob/miniredis/v2)
[![Go Reference](https://pkg.go.dev/badge/github.com/s-barr-fetch.svg)](https://pkg.go.dev/github.com/s-barr-fetch)
2 changes: 1 addition & 1 deletion cmd_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"fmt"
"strings"

"github.com/alicebob/miniredis/v2/server"
"github.com/s-barr-fetch/server"
)

// commandsClient handles client operations.
Expand Down
2 changes: 1 addition & 1 deletion cmd_client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package miniredis
import (
"testing"

"github.com/alicebob/miniredis/v2/proto"
"github.com/s-barr-fetch/proto"
)

// Test CLIENT *.
Expand Down
2 changes: 1 addition & 1 deletion cmd_cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"fmt"
"strings"

"github.com/alicebob/miniredis/v2/server"
"github.com/s-barr-fetch/server"
)

// commandsCluster handles some cluster operations.
Expand Down
2 changes: 1 addition & 1 deletion cmd_cluster_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"strconv"
"testing"

"github.com/alicebob/miniredis/v2/proto"
"github.com/s-barr-fetch/proto"
)

// Test CLUSTER *.
Expand Down
2 changes: 1 addition & 1 deletion cmd_command.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

package miniredis

import "github.com/alicebob/miniredis/v2/server"
import "github.com/s-barr-fetch/server"

func (m *Miniredis) cmdCommand(c *server.Peer, cmd string, args []string) {
// Got from redis 5.0.7 with
Expand Down
2 changes: 1 addition & 1 deletion cmd_connection.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"fmt"
"strings"

"github.com/alicebob/miniredis/v2/server"
"github.com/s-barr-fetch/server"
)

func commandsConnection(m *Miniredis) {
Expand Down
2 changes: 1 addition & 1 deletion cmd_connection_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package miniredis
import (
"testing"

"github.com/alicebob/miniredis/v2/proto"
"github.com/s-barr-fetch/proto"
)

func TestAuth(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion cmd_generic.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"strings"
"time"

"github.com/alicebob/miniredis/v2/server"
"github.com/s-barr-fetch/server"
)

// commandsGeneric handles EXPIRE, TTL, PERSIST, &c.
Expand Down
2 changes: 1 addition & 1 deletion cmd_generic_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"testing"
"time"

"github.com/alicebob/miniredis/v2/proto"
"github.com/s-barr-fetch/proto"
)

// Test EXPIRE. Keys with an expiration are called volatile in Redis parlance.
Expand Down
2 changes: 1 addition & 1 deletion cmd_geo.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"strconv"
"strings"

"github.com/alicebob/miniredis/v2/server"
"github.com/s-barr-fetch/server"
)

// commandsGeo handles GEOADD, GEORADIUS etc.
Expand Down
2 changes: 1 addition & 1 deletion cmd_geo_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package miniredis
import (
"testing"

"github.com/alicebob/miniredis/v2/proto"
"github.com/s-barr-fetch/proto"
)

func TestGeoadd(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion cmd_hash.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"strconv"
"strings"

"github.com/alicebob/miniredis/v2/server"
"github.com/s-barr-fetch/server"
)

// commandsHash handles all hash value operations.
Expand Down
2 changes: 1 addition & 1 deletion cmd_hash_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"testing"
"time"

"github.com/alicebob/miniredis/v2/proto"
"github.com/s-barr-fetch/proto"
)

func TestHash(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion cmd_hll.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package miniredis

import "github.com/alicebob/miniredis/v2/server"
import "github.com/s-barr-fetch/server"

// commandsHll handles all hll related operations.
func commandsHll(m *Miniredis) {
Expand Down
2 changes: 1 addition & 1 deletion cmd_hll_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package miniredis
import (
"testing"

"github.com/alicebob/miniredis/v2/proto"
"github.com/s-barr-fetch/proto"
)

// Test PFADD
Expand Down
2 changes: 1 addition & 1 deletion cmd_info.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package miniredis
import (
"fmt"

"github.com/alicebob/miniredis/v2/server"
"github.com/s-barr-fetch/server"
)

// Command 'INFO' from https://redis.io/commands/info/
Expand Down
2 changes: 1 addition & 1 deletion cmd_info_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"testing"
"time"

"github.com/alicebob/miniredis/v2/proto"
"github.com/s-barr-fetch/proto"
)

func TestMiniredis_cmdInfo(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion cmd_list.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"strings"
"time"

"github.com/alicebob/miniredis/v2/server"
"github.com/s-barr-fetch/server"
)

type leftright int
Expand Down
2 changes: 1 addition & 1 deletion cmd_list_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"testing"
"time"

"github.com/alicebob/miniredis/v2/proto"
"github.com/s-barr-fetch/proto"
)

// execute command in a go routine. Used to test blocking commands.
Expand Down
2 changes: 1 addition & 1 deletion cmd_object.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"fmt"
"strings"

"github.com/alicebob/miniredis/v2/server"
"github.com/s-barr-fetch/server"
)

// commandsObject handles all object operations.
Expand Down
2 changes: 1 addition & 1 deletion cmd_object_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"testing"
"time"

"github.com/alicebob/miniredis/v2/proto"
"github.com/s-barr-fetch/proto"
)

// Test OBJECT IDLETIME.
Expand Down
2 changes: 1 addition & 1 deletion cmd_pubsub.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"fmt"
"strings"

"github.com/alicebob/miniredis/v2/server"
"github.com/s-barr-fetch/server"
)

// commandsPubsub handles all PUB/SUB operations.
Expand Down
2 changes: 1 addition & 1 deletion cmd_pubsub_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package miniredis
import (
"testing"

"github.com/alicebob/miniredis/v2/proto"
"github.com/s-barr-fetch/proto"
)

func TestSubscribe(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion cmd_scripting.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
lua "github.com/yuin/gopher-lua"
"github.com/yuin/gopher-lua/parse"

"github.com/alicebob/miniredis/v2/server"
"github.com/s-barr-fetch/server"
)

func commandsScripting(m *Miniredis) {
Expand Down
2 changes: 1 addition & 1 deletion cmd_scripting_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package miniredis
import (
"testing"

"github.com/alicebob/miniredis/v2/proto"
"github.com/s-barr-fetch/proto"
)

func TestEval(t *testing.T) {
Expand Down
4 changes: 2 additions & 2 deletions cmd_server.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import (
"strconv"
"strings"

"github.com/alicebob/miniredis/v2/server"
"github.com/alicebob/miniredis/v2/size"
"github.com/s-barr-fetch/server"
"github.com/s-barr-fetch/size"
)

func commandsServer(m *Miniredis) {
Expand Down
2 changes: 1 addition & 1 deletion cmd_server_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"testing"
"time"

"github.com/alicebob/miniredis/v2/proto"
"github.com/s-barr-fetch/proto"
)

// Test DBSIZE, FLUSHDB, and FLUSHALL.
Expand Down
2 changes: 1 addition & 1 deletion cmd_set.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"strconv"
"strings"

"github.com/alicebob/miniredis/v2/server"
"github.com/s-barr-fetch/server"
)

// commandsSet handles all set value operations.
Expand Down
2 changes: 1 addition & 1 deletion cmd_set_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"sort"
"testing"

"github.com/alicebob/miniredis/v2/proto"
"github.com/s-barr-fetch/proto"
)

// Test SADD / SMEMBERS.
Expand Down
2 changes: 1 addition & 1 deletion cmd_sorted_set.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"strconv"
"strings"

"github.com/alicebob/miniredis/v2/server"
"github.com/s-barr-fetch/server"
)

// commandsSortedSet handles all sorted set operations.
Expand Down
2 changes: 1 addition & 1 deletion cmd_sorted_set_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"math"
"testing"

"github.com/alicebob/miniredis/v2/proto"
"github.com/s-barr-fetch/proto"
)

// Test ZADD / ZCARD / ZRANK / ZREVRANK.
Expand Down
2 changes: 1 addition & 1 deletion cmd_stream.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"strings"
"time"

"github.com/alicebob/miniredis/v2/server"
"github.com/s-barr-fetch/server"
)

// commandsStream handles all stream operations.
Expand Down
2 changes: 1 addition & 1 deletion cmd_stream_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"testing"
"time"

"github.com/alicebob/miniredis/v2/proto"
"github.com/s-barr-fetch/proto"
)

// Test XADD / XLEN / XRANGE
Expand Down
2 changes: 1 addition & 1 deletion cmd_string.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"strings"
"time"

"github.com/alicebob/miniredis/v2/server"
"github.com/s-barr-fetch/server"
)

// commandsString handles all string value operations.
Expand Down
2 changes: 1 addition & 1 deletion cmd_string_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"testing"
"time"

"github.com/alicebob/miniredis/v2/proto"
"github.com/s-barr-fetch/proto"
)

// Test simple GET/SET keys
Expand Down
2 changes: 1 addition & 1 deletion cmd_transactions.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
package miniredis

import (
"github.com/alicebob/miniredis/v2/server"
"github.com/s-barr-fetch/server"
)

// commandsTransaction handles MULTI &c.
Expand Down
2 changes: 1 addition & 1 deletion cmd_transactions_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package miniredis
import (
"testing"

"github.com/alicebob/miniredis/v2/proto"
"github.com/s-barr-fetch/proto"
)

func TestMulti(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion geo.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package miniredis
import (
"math"

"github.com/alicebob/miniredis/v2/geohash"
"github.com/s-barr-fetch/geohash"
)

func toGeohash(long, lat float64) uint64 {
Expand Down
4 changes: 1 addition & 3 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
module github.com/alicebob/miniredis/v2
module github.com/s-barr-fetch

require (
github.com/alicebob/gopher-json v0.0.0-20200520072559-a9ecdc9d1d3a
github.com/yuin/gopher-lua v1.1.0
)

require github.com/DmitriyVTitov/size v1.5.0

go 1.14
4 changes: 0 additions & 4 deletions go.sum
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
github.com/DmitriyVTitov/size v1.5.0 h1:/PzqxYrOyOUX1BXj6J9OuVRVGe+66VL4D9FlUaW515g=
github.com/DmitriyVTitov/size v1.5.0/go.mod h1:le6rNI4CoLQV1b9gzp1+3d7hMAD/uu2QcJ+aYbNgiU0=
github.com/alicebob/gopher-json v0.0.0-20200520072559-a9ecdc9d1d3a h1:HbKu58rmZpUGpz5+4FfNmIU+FmZg2P3Xaj2v2bfNWmk=
github.com/alicebob/gopher-json v0.0.0-20200520072559-a9ecdc9d1d3a/go.mod h1:SGnFV6hVsYE877CKEZ6tDNTjaSXYUk6QqoIK6PrAtcc=
github.com/chzyer/logex v1.1.10/go.mod h1:+Ywpsq7O8HXn0nuIou7OrIPyXbp3wmkHB+jjWRnGsAI=
github.com/chzyer/readline v0.0.0-20180603132655-2972be24d48e/go.mod h1:nSuG5e5PlCu98SY8svDHJxuZscDgtXS6KTTbou5AhLI=
github.com/chzyer/test v0.0.0-20180213035817-a1ea475d72b1/go.mod h1:Q3SI9o4m/ZMnBNeIyt5eFwwo7qiLfzFZmjNmxjkiQlU=
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da h1:oI5xCqsCo564l8iNU+DwB5epxmsaqB+rhGL0m5jtYqE=
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc=
github.com/yuin/gopher-lua v1.1.0 h1:BojcDhfyDWgU2f2TOzYK/g5p2gxMrku8oupLDqlnSqE=
github.com/yuin/gopher-lua v1.1.0/go.mod h1:GBR0iDaNXjAgGg9zfCvksxSRnQx76gclCIb7kdAd1Pw=
golang.org/x/sys v0.0.0-20190204203706-41f3e6584952/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=

0 comments on commit f047de7

Please sign in to comment.