{"id":16383671,"url":"https://github.com/ainsleyclark/redigo","last_synced_at":"2026-04-14T23:33:56.702Z","repository":{"id":38258017,"uuid":"493589257","full_name":"ainsleyclark/redigo","owner":"ainsleyclark","description":"🔥 A Redis client for GoLang featuring Tags with Gob \u0026 JSON encoding.","archived":false,"fork":false,"pushed_at":"2022-06-08T06:35:51.000Z","size":105,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-21T22:30:31.867Z","etag":null,"topics":["cache","decoding","encoding","go","gob","golang","json","message-pack","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/ainsleyclark.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"github":["ainsleyclark"]}},"created_at":"2022-05-18T09:09:48.000Z","updated_at":"2022-07-28T15:14:07.000Z","dependencies_parsed_at":"2022-08-31T12:22:12.559Z","dependency_job_id":null,"html_url":"https://github.com/ainsleyclark/redigo","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/ainsleyclark/redigo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ainsleyclark%2Fredigo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ainsleyclark%2Fredigo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ainsleyclark%2Fredigo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ainsleyclark%2Fredigo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ainsleyclark","download_url":"https://codeload.github.com/ainsleyclark/redigo/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ainsleyclark%2Fredigo/sbom","scorecard":{"id":173178,"data":{"date":"2025-08-11","repo":{"name":"github.com/ainsleyclark/redigo","commit":"b92c7a3b3b789eb72b934af71215d636c619e1bb"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.8,"checks":[{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Code-Review","score":0,"reason":"Found 0/5 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Info: jobLevel 'actions' permission set to 'read': .github/workflows/codeql-analysis.yml:28","Info: jobLevel 'contents' permission set to 'read': .github/workflows/codeql-analysis.yml:29","Warn: no topLevel permission defined: .github/workflows/codeql-analysis.yml:1","Warn: no topLevel permission defined: .github/workflows/test.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql-analysis.yml:41: update your workflow using https://app.stepsecurity.io/secureworkflow/ainsleyclark/redigo/codeql-analysis.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql-analysis.yml:45: update your workflow using https://app.stepsecurity.io/secureworkflow/ainsleyclark/redigo/codeql-analysis.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql-analysis.yml:56: update your workflow using https://app.stepsecurity.io/secureworkflow/ainsleyclark/redigo/codeql-analysis.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql-analysis.yml:70: update your workflow using https://app.stepsecurity.io/secureworkflow/ainsleyclark/redigo/codeql-analysis.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test.yml:15: update your workflow using https://app.stepsecurity.io/secureworkflow/ainsleyclark/redigo/test.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test.yml:18: update your workflow using https://app.stepsecurity.io/secureworkflow/ainsleyclark/redigo/test.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/test.yml:26: update your workflow using https://app.stepsecurity.io/secureworkflow/ainsleyclark/redigo/test.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/test.yml:37: update your workflow using https://app.stepsecurity.io/secureworkflow/ainsleyclark/redigo/test.yml/master?enable=pin","Info:   0 out of   6 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   2 third-party GitHubAction dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":9,"reason":"1 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GO-2022-0603 / GHSA-hp87-p4gw-j4gq"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"SAST","score":7,"reason":"SAST tool detected but not run on all commits","details":["Info: SAST configuration detected: CodeQL","Warn: 0 commits out of 28 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-16T17:05:57.316Z","repository_id":38258017,"created_at":"2025-08-16T17:05:57.316Z","updated_at":"2025-08-16T17:05:57.316Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31819871,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-14T18:05:02.291Z","status":"ssl_error","status_checked_at":"2026-04-14T18:05:01.765Z","response_time":153,"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":["cache","decoding","encoding","go","gob","golang","json","message-pack","redis"],"created_at":"2024-10-11T04:09:22.997Z","updated_at":"2026-04-14T23:33:56.685Z","avatar_url":"https://github.com/ainsleyclark.png","language":"Go","funding_links":["https://github.com/sponsors/ainsleyclark"],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n\u003cimg height=\"250\" src=\"res/logo.svg\" alt=\"Errors Logo\" /\u003e\n\n\u0026nbsp;\n\n[![made-with-Go](https://img.shields.io/badge/Made%20with-Go-1f425f.svg)](http://golang.org)\n[![GoDoc](https://godoc.org/github.com/ainsleyclark/redigo/redis?status.svg)](https://pkg.go.dev/github.com/ainsleyclark/redigo)\n[![Test](https://github.com/ainsleyclark/redigo/actions/workflows/test.yml/badge.svg?branch=master)](https://github.com/ainsleyclark/redigo/actions/workflows/test.yml)\n[![codecov](https://codecov.io/gh/ainsleyclark/redigo/branch/master/graph/badge.svg?token=K27L8LS7DA)](https://codecov.io/gh/ainsleyclark/redigo)\n[![GoReportCard](https://goreportcard.com/badge/github.com/ainsleyclark/redigo)](https://goreportcard.com/report/github.com/ainsleyclark/redigo)\n\n\u003c/div\u003e\n\n# 🔥 RediGo\nA Redis client for GoLang featuring Tags with Gob \u0026amp; JSON encoding.\n\n## Why?\nRediGo is a wrapper for the Redis V8 GoLang client that features tagging, expiration and automatic encoding and decoding\nusing various encoders. It helps to unify various encoding techniques with a simple and easy to user interface.\n\nGob encoding performs drastically better in comparison to JSON which you can see from the benchmarks below.\n\n## Install\n\n```\ngo get -u github.com/ainsleyclark/redigo\n```\n\n## Quick Start\n\nSee below for a quick start to create a new Redis Client with an encoder. For more client methods see the\n[Go Doc](https://pkg.go.dev/github.com/ainsleyclark/redigo) which includes all the client methods.\n\n```go\nfunc ExampleClient() {\n\tctx := context.Background()\n\n\tc := redigo.New(\u0026redis.Options{}, redigo.NewGobEncoder())\n\terr := c.Ping(ctx)\n\tif err != nil {\n\t\tlog.Fatalln(err)\n\t}\n\n\terr = c.Set(ctx, \"my-key\", \"hello\", redigo.Options{\n\t\tExpiration: time.Second * 100,\n\t\tTags:       []string{\"my-tag\"},\n\t})\n\tif err != nil {\n\t\tlog.Fatalln(err)\n\t}\n\n\tvar val string\n\terr = c.Get(ctx, \"my-key\", \u0026val) // Be sure to pass a reference!\n\tif err != nil {\n\t\tlog.Fatalln(err)\n\t}\n\n\terr = c.Delete(ctx, \"my-key\")\n\tif err != nil {\n\t\tlog.Fatalln(err)\n\t}\n}\n\n```\n\n## Encoders\n\n### JSON\n\n```go\nc := redigo.New(\u0026redis.Options{}, redigo.NewJSONEncoder())\n```\n\n### Gob\n\n```go\nc := redigo.New(\u0026redis.Options{}, redigo.NewGobEncoder())\n```\n\n### Message Pack\nSee [github.com/vmihailenco/msgpack](https://github.com/vmihailenco/msgpack) for more details.\n\n```go\nc := redigo.New(\u0026redis.Options{}, redigo.NewMessagePackEncoder())\n```\n\n### Go JSON\nSee [github.com/goccy/go-json](https://github.com/goccy/go-json) for more details.\n\n```go\nc := redigo.New(\u0026redis.Options{}, redigo.NewMessagePackEncoder())\n```\n\n### Custom\nYou can pass in custom encoders to the client constructor, that implement the Encode and Decode methods.\n\n```go\ntype MyEncoder struct{}\n\nfunc (m MessagePack) Encode(value any) ([]byte, error) {\n\t// Marshal or encode value\n\treturn []byte(\"hello\"), nil\n}\n\nfunc (m MessagePack) Decode(data []byte, value any) error {\n\t// Unmarshal or decode value\n\treturn nil\n}\n\nfunc ExampleCustom() {\n\tc := redigo.New(\u0026redis.Options{}, \u0026MyEncoder{})\n}\n```\n\n### Benchmarks\n\n```bash\n$ go version\ngo version go1.18.2 darwin/amd64\n```\n\n### Encode\n\n```bash\nBenchmarkEncode/JSON-16                    54728             21813 ns/op            9294 B/op        206 allocs/op\nBenchmarkEncode/Gob-16                    154272              7629 ns/op            4304 B/op        220 allocs/op\nBenchmarkEncode/Message_Pack-16           113059             10468 ns/op            6820 B/op        208 allocs/op\nBenchmarkEncode/Go_JSON-16                 92598             12768 ns/op             897 B/op          1 allocs/op\n```\n\n#### Graph representing ns/op.\n\u003cimg width=\"100%\" src=\"graph/Encode.svg\" alt=\"Encoding Benchmark Graph\" /\u003e\n\n### Decode\n\n```bash\nBenchmarkDecode/JSON/-16                   39386             30318 ns/op            7246 B/op        302 allocs/op\nBenchmarkDecode/Gob/-16                    57792             20742 ns/op           12733 B/op        193 allocs/op\nBenchmarkDecode/Message_Pack/-16           57416             20626 ns/op            7217 B/op        220 allocs/op\nBenchmarkDecode/Go_JSON/-16                95376             12186 ns/op            8068 B/op        220 allocs/op\n\n```\n\n#### Graph representing ns/op.\n\u003cimg width=\"100%\" src=\"graph/Decode.svg\" alt=\"Decoding Benchmark Graph\" /\u003e\n\n## Contributing\n\nPlease feel free to make a pull request if you think something should be added to this package!\n\n## Credits\n\nShout out to the incredible [Maria Letta](https://github.com/MariaLetta) for her excellent Gopher illustrations.\n\n## Licence\n\nCode Copyright 2022 RediGo. Code released under the [MIT Licence](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fainsleyclark%2Fredigo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fainsleyclark%2Fredigo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fainsleyclark%2Fredigo/lists"}