{"id":19124210,"url":"https://github.com/tair-opensource/tair-go","last_synced_at":"2026-03-01T19:34:02.886Z","repository":{"id":45518943,"uuid":"513777216","full_name":"tair-opensource/tair-go","owner":"tair-opensource","description":"A client packaged based on go-redis that operates Tair For Redis Modules.","archived":false,"fork":false,"pushed_at":"2024-11-07T12:19:27.000Z","size":103,"stargazers_count":34,"open_issues_count":2,"forks_count":9,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-04-15T11:17:24.015Z","etag":null,"topics":[],"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/tair-opensource.png","metadata":{"files":{"readme":"README-CN.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2022-07-14T05:54:47.000Z","updated_at":"2025-01-05T15:25:07.000Z","dependencies_parsed_at":"2023-11-23T13:48:28.320Z","dependency_job_id":"c8078262-9a27-4018-93f0-a308c9065596","html_url":"https://github.com/tair-opensource/tair-go","commit_stats":null,"previous_names":["alibaba/tair-go"],"tags_count":10,"template":false,"template_full_name":null,"purl":"pkg:github/tair-opensource/tair-go","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tair-opensource%2Ftair-go","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tair-opensource%2Ftair-go/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tair-opensource%2Ftair-go/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tair-opensource%2Ftair-go/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tair-opensource","download_url":"https://codeload.github.com/tair-opensource/tair-go/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tair-opensource%2Ftair-go/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29981467,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-01T16:35:47.903Z","status":"ssl_error","status_checked_at":"2026-03-01T16:35:44.899Z","response_time":124,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":[],"created_at":"2024-11-09T05:28:25.326Z","updated_at":"2026-03-01T19:34:02.863Z","avatar_url":"https://github.com/tair-opensource.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# tair-go\n\n![build workflow](https://github.com/alibaba/tair-go/actions/workflows/go.yml/badge.svg)\n[![Go Reference](https://pkg.go.dev/badge/github.com/alibaba/tair-go.svg)](https://pkg.go.dev/github.com/alibaba/tair-go)\n\nEnglish | [简体中文](./README-CN.md)\n\n基于 [go-redis](https://github.com/go-redis/redis) 封装，用于操作 [Tair Modules](https://help.aliyun.com/document_detail/145957.html) 的客户端。\n\n- [TairHash](https://help.aliyun.com/document_detail/145970.html), 可实现 field 级别的过期。(已[开源](https://github.com/alibaba/TairHash))\n- [TairString](https://help.aliyun.com/document_detail/145902.html), 支持 string 设置 version，增强的`cas`和`cad`命令可轻松实现分布式锁。(已[开源](https://github.com/alibaba/TairString))\n- [TairZset](https://help.aliyun.com/document_detail/292812.html), 支持多维排序。(已[开源](https://github.com/alibaba/TairZset))\n- [TairBloom](https://help.aliyun.com/document_detail/145972.html), 支持动态扩容的布隆过滤器。\n- [TairRoaring](https://help.aliyun.com/document_detail/311433.html), Roaring Bitmap, 使用少量的存储空间来实现海量数据的查询优化。\n- [TairSearch](https://help.aliyun.com/document_detail/417908.html), 支持ES-LIKE语法的全文索引和搜索模块。\n- [TairDoc](https://help.aliyun.com/document_detail/145940.html), 支持存储`JSON`类型。\n- [TairGis](https://help.aliyun.com/document_detail/145971.html), 支持地理位置点、线、面的相交、包含等关系判断。（已[开源](https://github.com/tair-opensource/TairGis)）\n- [TairTs](https://help.aliyun.com/document_detail/408954.html), 时序数据结构，提供低时延、高并发的内存读写访问。\n- [TairCpc](https://help.aliyun.com/document_detail/410587.html), 基于CPC（Compressed Probability Counting）压缩算法开发的数据结构，支持仅占用很小的内存空间对采样数据进行高性能计算。\n- [TairVector](https://help.aliyun.com/zh/tair/developer-reference/vector), 提供高性能、实时，集存储、检索于一体的向量数据库服务。\n\n## 安装\n```\ngo get github.com/alibaba/tair-go\n```\n\n## 快速开始\n一个 TairString 的示例如下所示:\n\ngo.mod\n```\nrequire (\n\tgithub.com/alibaba/tair-go v1.1.3\n)\n```\n\ntest.go\n```Go\nimport (\n\t\"context\"\n\t\"fmt\"\n\t\"github.com/redis/go-redis/v9\"\n\t\"github.com/alibaba/tair-go/tair\"\n)\n\nvar ctx = context.Background()\n\nvar tairClient *tair.TairClient\n\nfunc init() {\n\ttairClient = tair.NewTairClient(\u0026redis.Options{\n\t\tAddr:     \"xxx.redis.rds.aliyuncs.com:6379\",\n\t\tPassword: \"xxx\",\n\t\tDB:       0,\n\t})\n}\n\nfunc main() {\n\terr := tairClient.ExSet(ctx, \"exkey\", \"exval\").Err()\n\tif err != nil {\n\t\tfmt.Println(err.Error())\n\t}\n\n\tval, err := tairClient.ExGet(ctx, \"exkey\").Result()\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\tfmt.Println(\"get exkey values is: \", val)\n}\n```\n\n## Tair 所有的 SDK\n\n| language | GitHub |\n|----------|---|\n| Java     |https://github.com/alibaba/alibabacloud-tairjedis-sdk|\n| Python   |https://github.com/alibaba/tair-py|\n| Go       |https://github.com/alibaba/tair-go|\n| .Net     |https://github.com/alibaba/AlibabaCloud.TairSDK|","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftair-opensource%2Ftair-go","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftair-opensource%2Ftair-go","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftair-opensource%2Ftair-go/lists"}