Registry / database / go-redis-redis-v8

go-redis-redis-v8

JSON →
library8.11.5gogounverified

A Redis client for Go, providing a robust and feature-rich interface to Redis.

go get github.com/go-redis/redis/v8
INSTALL
IMPORT
SIG · GO-REDIS-REDIS-V8
G
go-redis-redis-v8
databasegov8.11.5
harness data pending
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.

redis
github.com/go-redis/redis/v8

Connect to Redis and get a key.

package main import ( "context" "fmt" "github.com/go-redis/redis/v8" ) func main() { client := redis.NewClient(&redis.Options{Addr: "localhost:6379"}) val, err := client.Get(context.Background(), "key").Result() if err != nil { panic(err) } fmt.Println(val) }
Debug
Known issues
breakingBreaking changes from v7 to v8
fix
Update import path and API calls according to v8 migration guide.
affects: >=8.0.0
Upgrade
Version history
8.11.5latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
15 hits · last 30 days
node
14
Resources
go-redis-redis-v8 — go get go-redis-redis-v8 · libregistry