| 1 |
Redigo |
| 2 |
====== |
| 3 |
|
| 4 |
[](https://pkg.go.dev/github.com/gomodule/redigo/redis) |
| 5 |
|
| 6 |
Redigo is a [Go](http://golang.org/) client for the [Redis](http://redis.io/) / [Valkey](https://github.com/valkey-io/valkey) database. |
| 7 |
|
| 8 |
Features |
| 9 |
------- |
| 10 |
|
| 11 |
* A [Print-like](https://pkg.go.dev/github.com/gomodule/redigo/redis#hdr-Executing_Commands) API with support for all Redis commands. |
| 12 |
* [Pipelining](https://pkg.go.dev/github.com/gomodule/redigo/redis#hdr-Pipelining), including pipelined transactions. |
| 13 |
* [Publish/Subscribe](https://pkg.go.dev/github.com/gomodule/redigo/redis#hdr-Publish_and_Subscribe). |
| 14 |
* [Connection pooling](https://pkg.go.dev/github.com/gomodule/redigo/redis#Pool). |
| 15 |
* [Script helper type](https://pkg.go.dev/github.com/gomodule/redigo/redis#Script) with optimistic use of EVALSHA. |
| 16 |
* [Helper functions](https://pkg.go.dev/github.com/gomodule/redigo/redis#hdr-Reply_Helpers) for working with command replies. |
| 17 |
|
| 18 |
Documentation |
| 19 |
------------- |
| 20 |
|
| 21 |
- [API Reference](https://pkg.go.dev/github.com/gomodule/redigo/redis) |
| 22 |
- [FAQ](https://github.com/gomodule/redigo/wiki/FAQ) |
| 23 |
- [Examples](https://pkg.go.dev/github.com/gomodule/redigo/redis#pkg-examples) |
| 24 |
|
| 25 |
Installation |
| 26 |
------------ |
| 27 |
|
| 28 |
Install Redigo using the "go get" command: |
| 29 |
|
| 30 |
go get github.com/gomodule/redigo/redis |
| 31 |
|
| 32 |
The Go distribution is Redigo's only dependency. |
| 33 |
|
| 34 |
Related Projects |
| 35 |
---------------- |
| 36 |
|
| 37 |
- [rafaeljusto/redigomock](https://pkg.go.dev/github.com/rafaeljusto/redigomock) - A mock library for Redigo. |
| 38 |
- [chasex/redis-go-cluster](https://github.com/chasex/redis-go-cluster) - A Redis cluster client implementation. |
| 39 |
- [FZambia/sentinel](https://github.com/FZambia/sentinel) - Redis Sentinel support for Redigo |
| 40 |
- [mna/redisc](https://github.com/mna/redisc) - Redis Cluster client built on top of Redigo |
| 41 |
- [Alibaba/opentelemetry-go-auto-instrumentation](https://github.com/alibaba/opentelemetry-go-auto-instrumentation) - Get trace and metrics in OpenTelemetry format generated by the Redigo framework without changing any code |
| 42 |
|
| 43 |
Contributing |
| 44 |
------------ |
| 45 |
|
| 46 |
See [CONTRIBUTING.md](https://github.com/gomodule/redigo/blob/master/.github/CONTRIBUTING.md). |
| 47 |
|
| 48 |
License |
| 49 |
------- |
| 50 |
|
| 51 |
Redigo is available under the [Apache License, Version 2.0](http://www.apache.org/licenses/LICENSE-2.0.html). |