{"id":51634,"library":"go-redis-redis-v9","title":"Go-Redis v9","description":"Package redis implements a Redis client.","status":"active","version":"9.20.1","language":"go","source_language":null,"source_url":"https://github.com/go-redis/redis","tags":["redis","client","database"],"install":[{"cmd":"go get github.com/go-redis/redis/v9","lang":"bash","label":"Install github.com/go-redis/redis/v9"}],"dependencies":[],"imports":[{"symbol":"redis","correct":"github.com/go-redis/redis/v9"}],"quickstart":{"code":"package main\n\nimport (\n    \"context\"\n    \"fmt\"\n    \"github.com/go-redis/redis/v9\"\n)\n\nfunc main() {\n    rdb := redis.NewClient(&redis.Options{\n        Addr: \"localhost:6379\",\n    })\n    err := rdb.Set(context.Background(), \"key\", \"value\", 0).Err()\n    if err != nil {\n        panic(err)\n    }\n    val, err := rdb.Get(context.Background(), \"key\").Result()\n    if err != nil {\n        panic(err)\n    }\n    fmt.Println(\"key\", val)\n}","lang":"go","description":"Connects to Redis, sets and gets a key."},"warnings":[{"fix":"Use import path github.com/go-redis/redis/v9 instead of github.com/go-redis/redis.","message":"v9 uses Go modules with /v9 suffix; import path must include /v9.","severity":"breaking","affected_versions":">=9.0.0"}],"env_vars":null,"search_vec":"'client':10,12 'databas':13 'go':2 'go-redi':1 'implement':7 'packag':5 'redi':3,6,9,11 'v9':4","created_at":"2026-06-15T06:24:12.187636+00:00","updated_at":"2026-06-15T06:24:12.187636+00:00","problems":[],"ecosystem":"go","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/go-redis/redis","github":"https://github.com/go-redis/redis","docs":"https://pkg.go.dev/github.com/go-redis/redis/v9#section-documentation","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["database"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-15","next_check":"2026-12-12","install_tag":null}}