proxy.golang.org : github.com/alicebob/miniredis/v2 : v2.11.1
Package miniredis is a pure Go Redis test server, for use in Go unittests. There are no dependencies on system binaries, and every server you start will be empty. import "github.com/alicebob/miniredis/v2" Start a server with `s := miniredis.RunT(t)`, it'll be shutdown via a t.Cleanup(). Or do everything manual: `s, err := miniredis.Run(); defer s.Close()` Point your Redis client to `s.Addr()` or `s.Host(), s.Port()`. Set keys directly via s.Set(...) and similar commands, or use a Redis client. For direct use you can select a Redis database with either `s.Select(12); s.Get("foo")` or `s.DB(12).Get("foo")`.
Registry -
Documentation -
Download -
JSON -
codemeta.json
purl: pkg:golang/github.com/alicebob/miniredis/v2@v2.11.1
Published:
Indexed:
Related tag:
v2.11.1
- github.com/alicebob/gopher-json v0.0.0-20180125190556-5a6b3ba71ee6
- github.com/gomodule/redigo v1.7.1-0.20190322064113-39e2c31b7ca3
- github.com/yuin/gopher-lua v0.0.0-20190206043414-8bfc7677f583