OSS探訪GitHubでログイン

Pool・Pipeline・Pub/Sub・Sentinel/Clusterをまとめて扱う公式Redis Go client

スコアの見方

OSS規模スコアはStars・Watchers・Forks・Contributorsを対数圧縮して重み付けした現在の規模指標(上限なし)です。発掘スコアは現在のOSS規模スコアから発掘時点のOSS規模スコアを引いた値、更新ペースは直近30日Commit数、成長モメンタムは直近の観測期間におけるOSS規模スコア差、OSS健全度は取得できた更新状況・Community Health・Releaseの0〜100評価です。

Stars
22,258
主要言語
Go
ライセンス
BSD-2-Clause
リポジトリ最終更新
2026/10/06
ページ内ナビ

概要

go-redisはRedis公式のGo client libraryです。command API、automatic connection pool、Pub/Sub、pipeline/transaction、Sentinel、Cluster、client-side caching、scripting、credential provider等を提供し、Go applicationからRedisを利用できます。

特徴と向いている用途

公式資料に基づく紹介・実機未検証 · 内容確認日:

主な特徴

standalone・Sentinel・Clusterを同じGo client ecosystemで扱う

通常のClientに加えfailover/SentinelやCluster構成を扱い、command、Pub/Sub、transaction、Lua scripting等をGo APIから利用できます。

出典:[2]

connection poolとpipelineで高throughput workloadを構成する

automatic connection poolingとpipeline/transactionを提供し、v9.23.0ではClientごとに専用pipeline connection poolが導入されました。experimentalなautomatic pipeliningも利用できます。

出典:[2][4]

向いている用途

cache・session・queue周辺などRedisを利用するGo backendに向く

cache、rate limit、session、Pub/Sub、stream、distributed coordination等でRedisを利用し、standaloneからcluster構成までofficial clientで統一したい場合に適します。

出典:[2]

導入前の確認

v9.23.0からGo 1.26がminimum。pipeline poolとbatch size default変更を確認する

v9.23.0のgo.modはGo 1.26を要求します。9.23.0ではpipeline専用poolが追加され、AutoPipelineOptions.MaxBatchBytesのdefaultが128 KiBになりました。upgrade時はconnection数、memory、latency、pipeline throughputを実負荷で確認し、旧single-pool behaviorが必要ならPipelinePoolSize: -1を検討してください。

出典:[3][4][2]

参考にした公式資料

  1. [1]redis/go-redis — GitHub repository(2026-10-06)
  2. [2]go-redis v9.23.0 — README(2026-10-06)
  3. [3]go-redis v9.23.0 — go.mod(2026-10-06)
  4. [4]go-redis v9.23.0 release(2026-10-06)
  5. [5]go-redis BSD-2-Clause license(2026-10-06)
編集部からの補足

Redis公式Go clientで、standaloneからSentinel/Clusterまで同じecosystemで扱えます。pool、pipeline、timeout、retry、credential、client-side cacheはperformanceとfailure behaviorに直結するため、default任せにせず負荷条件で確認してください。

3ステップで試す

  1. 1

    ソースを取得

    git clone --depth 1 https://github.com/redis/go-redis.git
  2. 2

    リポジトリへ移動

    cd go-redis
  3. 3

    公式手順を確認

    READMEのInstallation / Quick Start / Getting Startedにある公式コマンドを続けて実行してください。

    find . -maxdepth 1 -iname 'README*' -exec sed -n '1,220p' {} \; -quit
公式READMEで確認

成長

成長の推移 · 直近30日

22,258 Stars

推移データを蓄積中です。

開発アクティビティ

直近90日・週次

Commit(直近30日)
36
Open PR
49

開発アクティビティを蓄積中です。

Built with

カテゴリとタグ

GitHubデータ

GitHubのデータGitHubの詳細データを見る

GitHub Topics

  • go
  • golang
  • redis
  • redis-client
  • redis-cluster
Stars
22,258
Forks
2,604
Watchers
253
Open Issues
31
Contributors
392
所有者種別
Organization
主要言語
Go
ライセンス
BSD-2-Clause
リポジトリ最終更新
2026/10/06

このOSSの使い方や活用事例をMarkdownで投稿できます。管理者が承認した後に公開されます。

情報の誤りを報告

掲載内容に誤りや古い情報があればお知らせください。

このページを読んで、次に何をすればよいか分かりましたか?