In your experience, what is the best and the worse Redis library available in Go? I need these two examples to write a blog post. Thanks.

This page summarizes the projects mentioned and recommended in the original post on reddit.com/r/golang

Our great sponsors
  • SonarLint - Deliver Cleaner and Safer Code - Right in Your IDE of Choice!
  • Scout APM - Less time debugging, more time building
  • JetBrains - Developer Ecosystem Survey 2022
  • redigo

    I was (am) using https://github.com/garyburd/redigo. We had to evaluate upgrading redis to master slave clusters and found that the above library does not support that and never intends to. That was a huge disappointment.

  • redis-go-cluster

    redis cluster client implementation in Go

    Hi u/jasonbx, thanks for sharing! I took this library into account to write a post about the adapter design pattern: https://www.hildeberto.com/2021/02/adapter-design-pattern-golang.html. I'm planning to write another post to show how easy it is to adopt another library with minimal changes in the code. Have you considered another library to solve your problem or are you still using Redigo? Btw, someone wrote this: https://github.com/wuxibin89/redis-go-cluster to work with clusters. Have you consider that?

  • SonarLint

    Deliver Cleaner and Safer Code - Right in Your IDE of Choice!. SonarLint is a free and open source IDE extension that identifies and catches bugs and vulnerabilities as you code, directly in the IDE. Install from your favorite IDE marketplace today.

  • Redis

    Type-safe Redis client for Golang (by go-redis)

    After experimenting with Redigo, I'm now trying https://github.com/go-redis/redis, which is equally popular, but better documented.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts