gomodule/redigo
GitHub: gomodule/redigo
Redigo 是一个功能完善的 Go 语言 Redis/Valkey 客户端库,提供连接池、Pipeline、发布/订阅和脚本辅助等特性,帮助 Go 开发者高效地与 Redis 进行交互。
Stars: 9856 | Forks: 1235
# Redigo
[](https://pkg.go.dev/github.com/gomodule/redigo/redis)
Redigo 是一个用于 [Redis](http://redis.io/) / [Valkey](https://github.com/valkey-io/valkey) 数据库的 [Go](http://golang.org/) 客户端。
## 特性
* 类似 [Print](https://pkg.go.dev/github.com/gomodule/redigo/redis#hdr-Executing_Commands) 的 API,支持所有 Redis 命令。
* [Pipelining](https://pkg.go.dev/github.com/gomodule/redigo/redis#hdr-Pipelining),包括流水线事务。
* [发布/订阅](https://pkg.go.dev/github.com/gomodule/redigo/redis#hdr-Publish_and_Subscribe)。
* [连接池](https://pkg.go.dev/github.com/gomodule/redigo/redis#Pool)。
* [脚本辅助类型](https://pkg.go.dev/github.com/gomodule/redigo/redis#Script),乐观地使用 EVALSHA。
* 用于处理命令回复的[辅助函数](https://pkg.go.dev/github.com/gomodule/redigo/redis#hdr-Reply_Helpers)。
## 文档
- [API 参考](https://pkg.go.dev/github.com/gomodule/redigo/redis)
- [常见问题解答](https://github.com/gomodule/redigo/wiki/FAQ)
- [示例](https://pkg.go.dev/github.com/gomodule/redigo/redis#pkg-examples)
## 安装说明
使用 "go get" 命令安装 Redigo:
```
go get github.com/gomodule/redigo/redis
```
Go 发行版是 Redigo 的唯一依赖。
## 相关项目
- [rafaeljusto/redigomock](https://pkg.go.dev/github.com/rafaeljusto/redigomock) - Redigo 的 mock 库。
- [chasex/redis-go-cluster](https://github.com/chasex/redis-go-cluster) - Redis 集群客户端实现。
- [FZambia/sentinel](https://github.com/FZambia/sentinel) - Redigo 的 Redis Sentinel 支持
- [mna/redisc](https://github.com/mna/redisc) - 基于 Redigo 构建的 Redis 集群客户端
- [Alibaba/opentelemetry-go-auto-instrumentation](https://github.com/alibaba/opentelemetry-go-auto-instrumentation) - 无需修改任何代码即可获取由 Redigo 框架生成的 OpenTelemetry 格式的 trace 和 metrics
## 贡献指南
请参阅 [CONTRIBUTING.md](https://github.com/gomodule/redigo/blob/master/.github/CONTRIBUTING.md)。
## 许可证
Redigo 遵循 [Apache License, Version 2.0](http://www.apache.org/licenses/LICENSE-2.0.html) 许可证。
标签:EVTX分析, Go, Redis, Ruby工具, 中间件, 客户端, 搜索引擎查询, 数据库连接池, 日志审计