Registry / database / gomodule-redigo-redis

gomodule-redigo-redis

JSON →
library0.0.1gogounverified

Go client for the Redis database.

go get github.com/gomodule/redigo/redis
INSTALL
IMPORT
SIG · GOMODULE-REDIGO-RE
G
gomodule-redigo-redis
databasegov0.0.1
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 a Redis server using Redigo

package main import ( "fmt" "github.com/gomodule/redigo/redis" ) func main() { conn, err := redis.Dial("tcp", "localhost:6379") if err != nil { panic(err) } defer conn.Close() fmt.Println("Connected to Redis") }
Debug
Known issues
gotchaConnection methods are not goroutine-safe; use Pool for concurrent access.
fix
Use redis.Pool to manage connections for concurrent goroutines.
affects: all
Upgrade
Version history
0.0.1latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

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