Registry /
database / go-redis-redis-extra-rediscmd-v8
Install & Compatibility
Where this runs
No compatibility data collected yet for this library.
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
rediscmd
✓ github.com/go-redis/redis/extra/rediscmd/v8
Demonstrates using rediscmd to format Redis commands as strings.
package main
import (
"context"
"fmt"
"github.com/go-redis/redis/v8"
"github.com/go-redis/redis/extra/rediscmd/v8"
)
func main() {
ctx := context.Background()
rdb := redis.NewClient(&redis.Options{Addr: "localhost:6379"})
cmds, _ := rediscmd.CmdsString(rdb, ctx, "PING")
fmt.Println(cmds)
}
Debug
Known issues
No known issues recorded.
Upgrade
Version history
8.11.5latest on pkg.go.dev
Audit
Dependencies
No dependency data recorded yet.