top

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.

Start a server with `s, err := miniredis.Run()`. Stop it with `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")`.

Imported by 3 package(s)

  1. github.com/alicebob/miniredis_vs_redis
  2. github.com/phedoreanu/counter/mockdb
  3. github.com/the-anna-project/storage/memory

Imported only in test by 80 package(s)

  1. github.com/AlphaPerfect/codis/pkg/proxy/router
  2. github.com/CodisLabs/codis/pkg/proxy
  3. github.com/EPICPaaS/codis/pkg/proxy/router
  4. github.com/InVisionApp/go-health/checkers
  5. github.com/Neeke/codis/pkg/proxy
  6. github.com/ahjdzx/codis/pkg/proxy/router
  7. github.com/alicebob/shredis
  8. github.com/bculberson/bloom
  9. github.com/caoxiaolin/codis/pkg/proxy/router
  10. github.com/cch123/codis/pkg/proxy
  11. github.com/chowchow316/miniredis
  12. github.com/citysir/codis/pkg/proxy/router
  13. github.com/cloudaice/codis/pkg/proxy/router
  14. github.com/corestoreio/csfw/net/geoip/backendgeoip
  15. github.com/corestoreio/csfw/net/geoip/maxmindwebservice
  16. github.com/corestoreio/csfw/storage/transcache
  17. github.com/corestoreio/pkg/net/geoip/maxmindwebservice
  18. github.com/corestoreio/pkg/storage/transcache
  19. github.com/corestoreio/pkg/storage/transcache/tcredis
  20. github.com/dalent/codis/pkg/proxy
  21. github.com/diegogub/codis/pkg/proxy/router
  22. github.com/dongzerun/codis/pkg/proxy/router
  23. github.com/eddyzhou/miniredis
  24. github.com/elvin-du/codis/pkg/proxy/router
  25. github.com/elvuel/codis/pkg/proxy/router
  26. github.com/godeep/codis/pkg/proxy/router
  27. github.com/guilhem/codis/pkg/proxy
  28. github.com/henrylee2cn/codis/pkg/proxy
  29. github.com/ihcsim/zapit
  30. github.com/ihcsim/zapit/internal/db
  31. github.com/insionng/codis-ha
  32. github.com/jmatrix/codis/pkg/proxy/router
  33. github.com/junmipan/cn-infra/db/keyval/redis
  34. github.com/kitech/codis/pkg/proxy/router
  35. github.com/kmiku7/codis-annotated/pkg/proxy
  36. github.com/kubernetes-helm/chartmuseum/cmd/chartmuseum
  37. github.com/kubernetes-helm/chartmuseum/pkg/cache
  38. github.com/legendtkl/codis/pkg/proxy
  39. github.com/ligato/cn-infra/db/keyval/redis
  40. github.com/liujianping/codis/pkg/proxy/router
  41. github.com/liusongsen/codis/pkg/proxy
  42. github.com/liutaihua/codis/pkg/proxy
  43. github.com/liuvictory99/codis/pkg/proxy
  44. github.com/lostz/codis/pkg/proxy/router
  45. github.com/louishust/codis/pkg/proxy/router
  46. github.com/love4j/codis/pkg/proxy/router
  47. github.com/magicshui/csfw/storage/transcache
  48. github.com/mathisonqin/codis/pkg/proxy/router
  49. github.com/maxid/codis/pkg/proxy
  50. github.com/miffa/cmkvs/codis-ha
  51. github.com/molibei/codis/pkg/proxy/router
  52. github.com/mynetstudy/codis/pkg/proxy
  53. github.com/ngaut/codis-ha
  54. github.com/ngaut/codis/pkg/proxy/router
  55. github.com/nproc/acl-go/driver/redis
  56. github.com/ohlinux/codis/pkg/proxy/router
  57. github.com/pims/miniredis
  58. github.com/probestar/codis/pkg/proxy
  59. github.com/qgweb/codis/pkg/proxy
  60. github.com/radioinmyhead/codis/pkg/proxy
  61. github.com/rrm80/gautham/token
  62. github.com/satanson/codis/pkg/proxy
  63. github.com/shenshouer/codis-ha
  64. github.com/shorrockin/miniredis
  65. github.com/siddontang/codis/pkg/proxy/router
  66. github.com/siddontang/goredis
  67. github.com/silentred/codis/pkg/proxy
  68. github.com/smacker/newrelic-context/nrredis
  69. github.com/square/spincycle/job-runner/chain
  70. github.com/tukdesk/goredis
  71. github.com/txgruppi/acl-go/driver/redis
  72. github.com/upton/codis/pkg/proxy/router
  73. github.com/wandoulabs/codis-ha
  74. github.com/wangbinxiang/codis/pkg/proxy/router
  75. github.com/wangcheng711/codis/pkg/proxy/router
  76. github.com/wlibo666/codis-ha
  77. github.com/wlibo666/codis/pkg/proxy
  78. github.com/yangzhe1991/codis/pkg/proxy/router
  79. github.com/zhwq001/codis/pkg/proxy
  80. github.com/zimulala/codis/pkg/proxy/router

Imports 1 package(s)

  1. github.com/bsm/redeo

Test imports 1 package(s)

  1. github.com/garyburd/redigo/redis