talira

go-redis

Redis client for Go

open sourceBSD-2-Clauseself-hostablefree

go-redis is the official Redis client library for Go, maintained by Redis. It supports every Redis command except QUIT and SYNC, with automatic connection pooling, Pub/Sub, pipelines and transactions, Lua scripting, Redis Sentinel and Redis Cluster, client-side caching and the Redis Stack probabilistic data types, plus experimental automatic pipelining and active-active failover across databases. Credentials can come from a streaming provider such as Entra ID or OAuth. It aims to support the last three Redis releases and should work with any Redis 7.0 or later. BSD-2-Clause licensed.

Problems it solves

  • connect to Redis from a Go service with connection pooling
  • use Redis as a cache from my Go application
  • publish and subscribe to Redis channels in Go
  • run Redis commands in pipelines or transactions from Go to cut round trips
  • connect a Go app to Redis Cluster or Sentinel for high availability
  • authenticate a Go app to Azure Cache for Redis with Entra ID
  • run Lua scripts on Redis from Go

Features

  • all Redis commands except QUIT and SYNC
  • automatic connection pooling
  • Pub/Sub
  • pipelines and transactions, plus experimental automatic pipelining
  • Lua scripting
  • Redis Sentinel and Redis Cluster
  • client-side caching
  • streaming credentials providers (Entra ID, OAuth)
  • MultiDB active-active failover (experimental)
  • Redis Stack probabilistic data types and the Redis 8.8 array type
View 1 more
  • customizable read and write buffer sizes