Registry / database / gomodule-redigo

gomodule-redigo

JSON →
library1.9.3gogounverified

A Go client for the Redis database, providing a simple and efficient interface.

go get github.com/gomodule/redigo
INSTALL
IMPORT
SIG · GOMODULE-REDIGO
G
gomodule-redigo
databasegov1.9.3
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/gomodule/redigo/redis

Connect to Redis, set and get a key.

package main import ( "fmt" "github.com/gomodule/redigo/redis" ) func main() { conn, _ := redis.Dial("tcp", ":6379") defer conn.Close() conn.Do("SET", "key", "hello") value, _ := redis.String(conn.Do("GET", "key")) fmt.Println(value) }
Debug
Known issues
gotchaRedigo does not support Redis Cluster natively; use a separate library for clustering.
fix
Consider using go-redis/redis for cluster support.
affects: all
Upgrade
Version history
1.9.3latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
gomodule-redigo — go get gomodule-redigo · libregistry