Registry / database / redis-v2

redis-v2

JSON →
library2.3.2gogounverified

Package redis implements a Redis client for Go.

go get gopkg.in/redis.v2
INSTALL
IMPORT
SIG · REDIS-V2
R
redis-v2
databasegov2.3.2
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
gopkg.in/redis.v2

Connects to a Redis server and retrieves a key's value.

package main import ( "fmt" "gopkg.in/redis.v2" ) func main() { client := redis.NewTCPClient(&redis.Options{ Addr: "localhost:6379", }) defer client.Close() val, _ := client.Get("key").Result() fmt.Println(val) }
Debug
Known issues
breakingThis is an older version of the Redis client (v2). The current major version is v8 with a different import path.
fix
Use github.com/go-redis/redis/v8 for the latest API.
affects: >=2.0.0
Upgrade
Version history
2.3.2latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
7 hits · last 30 days
node
6
Amazon
1
Resources
redis-v2 — go get redis-v2 · libregistry