migrate-go-redis

Installation
SKILL.md

Migrating from go-redis to Valkey GLIDE (Go)

Use when migrating a Go application from go-redis/redis to the GLIDE client library.

Routing

  • String, hash, list, set, sorted set, delete, exists, cluster -> API Mapping
  • Pipeline, transaction, Batch API, TxPipelined -> Advanced Patterns
  • PubSub, subscribe, publish, queue-based polling -> Advanced Patterns

Key Differences

Area go-redis GLIDE
Return types *StatusCmd, *StringCmd with .Result() models.Result[T] with .Value() and .IsNil()
Nil handling redis.Nil sentinel error val.IsNil() method
Configuration redis.Options{} struct config.NewClientConfiguration() builder chain
Multi-arg commands Varargs: Del(ctx, "k1", "k2") Slice args: Del(ctx, []string{"k1", "k2"})
Expiry Duration arg: Set(ctx, "k", "v", 60*time.Second) SetWithOptions + options.SetOptions
Related skills

More from avifenesh/valkey-skills

Installs
1
GitHub Stars
2
First Seen
Apr 4, 2026