{"id":18494823,"url":"https://github.com/gbrlsnchs/redis","last_synced_at":"2026-04-26T22:31:24.690Z","repository":{"id":57608800,"uuid":"132783992","full_name":"gbrlsnchs/redis","owner":"gbrlsnchs","description":"Redis client for Go (or Golang)","archived":false,"fork":false,"pushed_at":"2019-01-10T16:23:53.000Z","size":38,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-12-13T09:52:29.540Z","etag":null,"topics":["client","go","golang","redis"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gbrlsnchs.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-05-09T16:24:44.000Z","updated_at":"2019-02-20T18:13:17.000Z","dependencies_parsed_at":"2022-08-30T09:01:32.436Z","dependency_job_id":null,"html_url":"https://github.com/gbrlsnchs/redis","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/gbrlsnchs/redis","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gbrlsnchs%2Fredis","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gbrlsnchs%2Fredis/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gbrlsnchs%2Fredis/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gbrlsnchs%2Fredis/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gbrlsnchs","download_url":"https://codeload.github.com/gbrlsnchs/redis/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gbrlsnchs%2Fredis/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32315711,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-26T21:09:39.134Z","status":"ssl_error","status_checked_at":"2026-04-26T21:09:21.240Z","response_time":129,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["client","go","golang","redis"],"created_at":"2024-11-06T13:22:19.239Z","updated_at":"2026-04-26T22:31:24.675Z","avatar_url":"https://github.com/gbrlsnchs.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# redis (Redis client for Go)\n[![Build Status](https://travis-ci.org/gbrlsnchs/redis.svg?branch=master)](https://travis-ci.org/gbrlsnchs/redis)\n[![Sourcegraph](https://sourcegraph.com/github.com/gbrlsnchs/redis/-/badge.svg)](https://sourcegraph.com/github.com/gbrlsnchs/redis?badge)\n[![GoDoc](https://godoc.org/github.com/gbrlsnchs/redis?status.svg)](https://godoc.org/github.com/gbrlsnchs/redis)\n[![Minimal Version](https://img.shields.io/badge/minimal%20version-go1.10%2B-5272b4.svg)](https://golang.org/doc/go1.10)\n\n## About\nThis package is a simple [Redis](https://redis.io) client for [Go](https://golang.org). It is context-aware and uses a resizable connection pool internally.\n\n## Usage\nFull documentation [here](https://godoc.org/github.com/gbrlsnchs/redis).\n\n### Installing\n#### Go 1.10\n`vgo get -u github.com/gbrlsnchs/redis`\n#### Go 1.11 or after\n`go get -u github.com/gbrlsnchs/redis`\n\n### Importing\n```go\nimport (\n\t// ...\n\n\t\"github.com/gbrlsnchs/redis\"\n)\n```\n\n### Pinging the database\n```go\ndb, err := redis.Open(\":6379\")\nif err != nil {\n\t// handle error\n}\nif _, err = db.Ping(); err != nil {\n\t// handle error\n}\n```\n\n### Configuring the connection pool\n```go\ndb, err := redis.Open(\":6379\")\nif err != nil {\n\t// handle error\n}\ndb.SetMaxIdleConns(20) // reuses up to 20 connections without closing them\ndb.SetMaxOpenConns(45) // opens up to 45 connections (20 remain open), otherwise waits\n```\n\n### Sending commands\n```go\nr, err := db.Send(\"SET\", \"foo\", 1)\nif err != nil {\n\t// handle error\n}\nfmt.Println(r.String()) // prints \"OK\"\nfmt.Println(r.IsOK())   // prints \"true\"\n\nif r, err = db.Send(\"GET\", \"foo\"); err != nil {\n\t// handle error\n}\nfmt.Println(r.Int64()) // prints \"1\"\n```\n\n## Contributing\n### How to help\n- For bugs and opinions, please [open an issue](https://github.com/gbrlsnchs/connpool/issues/new)\n- For pushing changes, please [open a pull request](https://github.com/gbrlsnchs/connpool/compare)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgbrlsnchs%2Fredis","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgbrlsnchs%2Fredis","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgbrlsnchs%2Fredis/lists"}