miniredis
miniredis copied to clipboard
Pure Go Redis server for Go unittests
I only found out miniredis existed this morning and just wanted to say I think it is fantastic! However, I have hit a problem with json encoding in lua scripts....
```go s, c := setupMiniredis() defer s.Close() c.ConfigSet("notify-keyspace-events", "KA") c.Set("abc", "def", 0) p := c.Subscribe("__keyspace@0__:abc") // subscribe key space `abc` go func() { time.Sleep(time.Second) c.Set("abc", "defd", 0) // update value...
https://redis.io/commands/bitfield Are there any plans to support `bitfield`?
The Redis Lua interpreter will loads it. See https://redis.io/commands/eval#available-libraries.
Maybe I didnt get it but when is use miniredis instead of go-redis and listening to the keypace events like: ``` client := redis.NewClient(&redis.Options{ Addr: s.Addr(), }) client.ConfigSet("notify-keyspace-events", "Kx") ......
I'm importing "github.com/alicebob/miniredis/v2" to mock redis cluster in units. When i do dep ensure i'm getting the below error. I'm on Go version 1.15 Solving failure: No versions of github.com/alicebob/miniredis...
Error scanning github.com/alicebob/miniredis/v2: cannot find package "." in: /home/sanket/.glide/cache/src/https-github.com-alicebob-miniredis/v2 [ERROR] Failed to retrieve a list of test dependencies: Error resolving imports I've used this import "github.com/alicebob/miniredis/v2" but still its not...
In production redis, it looks like `cjson.decode("null")` returns `cjson.null` whereas the lua cjson in miniredis returns `nil`. Maybe gopher-lua should be updated to match redis? The change involved seems a...
The package fails to build with missing package error - cmd_connection.go:8:2: cannot find package "github.com/alicebob/miniredis/v2/server" in any of: /usr/local/go/src/vendor/github.com/alicebob/miniredis/v2/server (vendor tree) /usr/local/go/src/github.com/alicebob/miniredis/v2/server (from $GOROOT) /home/ibmadmin/git/veena-dev/go/src/github.com/alicebob/miniredis/v2/server (from $GOPATH)
Are there any plans to introduce support for go-rejson?