{"id":28324026,"url":"https://github.com/redistimeseries/redistimeseries-go","last_synced_at":"2025-06-24T01:30:59.380Z","repository":{"id":37692986,"uuid":"157068150","full_name":"RedisTimeSeries/redistimeseries-go","owner":"RedisTimeSeries","description":"golang client lib for RedisTimeSeries ","archived":false,"fork":false,"pushed_at":"2024-09-10T19:09:01.000Z","size":308,"stargazers_count":66,"open_issues_count":41,"forks_count":18,"subscribers_count":10,"default_branch":"master","last_synced_at":"2025-06-02T02:04:23.955Z","etag":null,"topics":["golang","redis","redis-client","timeseries"],"latest_commit_sha":null,"homepage":"https://redistimeseries.io","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/RedisTimeSeries.png","metadata":{"files":{"readme":"README.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}},"created_at":"2018-11-11T10:18:49.000Z","updated_at":"2025-02-14T12:36:31.000Z","dependencies_parsed_at":"2023-12-07T06:24:45.313Z","dependency_job_id":"e41fecb4-db7b-45b0-b92b-45c3bd5afc5d","html_url":"https://github.com/RedisTimeSeries/redistimeseries-go","commit_stats":{"total_commits":114,"total_committers":15,"mean_commits":7.6,"dds":0.6140350877192983,"last_synced_commit":"e83b198e1b7cb280398913a9af1e593fb4c82aa0"},"previous_names":["redislabs/redis-timeseries-go"],"tags_count":11,"template":false,"template_full_name":null,"purl":"pkg:github/RedisTimeSeries/redistimeseries-go","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RedisTimeSeries%2Fredistimeseries-go","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RedisTimeSeries%2Fredistimeseries-go/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RedisTimeSeries%2Fredistimeseries-go/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RedisTimeSeries%2Fredistimeseries-go/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RedisTimeSeries","download_url":"https://codeload.github.com/RedisTimeSeries/redistimeseries-go/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RedisTimeSeries%2Fredistimeseries-go/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261586208,"owners_count":23181059,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["golang","redis","redis-client","timeseries"],"created_at":"2025-05-25T17:09:33.206Z","updated_at":"2025-06-24T01:30:59.363Z","avatar_url":"https://github.com/RedisTimeSeries.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![license](https://img.shields.io/github/license/RedisTimeSeries/RedisTimeSeries-go.svg)](https://github.com/RedisTimeSeries/RedisTimeSeries-go)\n[![CircleCI](https://circleci.com/gh/RedisTimeSeries/redistimeseries-go.svg?style=svg)](https://circleci.com/gh/RedisTimeSeries/redistimeseries-go)\n[![GitHub issues](https://img.shields.io/github/release/RedisTimeSeries/redistimeseries-go.svg)](https://github.com/RedisTimeSeries/redistimeseries-go/releases/latest)\n[![Codecov](https://codecov.io/gh/RedisTimeSeries/redistimeseries-go/branch/master/graph/badge.svg)](https://codecov.io/gh/RedisTimeSeries/redistimeseries-go)\n[![GoDoc](https://godoc.org/github.com/RedisTimeSeries/redistimeseries-go?status.svg)](https://godoc.org/github.com/RedisTimeSeries/redistimeseries-go)\n[![Go Report Card](https://goreportcard.com/badge/github.com/RedisTimeSeries/redistimeseries-go)](https://goreportcard.com/report/github.com/RedisTimeSeries/redistimeseries-go)\n[![Total alerts](https://img.shields.io/lgtm/alerts/g/RedisTimeSeries/redistimeseries-go.svg?logo=lgtm\u0026logoWidth=18)](https://lgtm.com/projects/g/RedisTimeSeries/redistimeseries-go/alerts/)\n\n# redistimeseries-go\n[![Forum](https://img.shields.io/badge/Forum-RedisTimeSeries-blue)](https://forum.redislabs.com/c/modules/redistimeseries)\n[![Discord](https://img.shields.io/discord/697882427875393627?style=flat-square)](https://discord.gg/KExRgMb)\n\nGo client for RedisTimeSeries (https://github.com/RedisTimeSeries/redistimeseries), based on redigo.\n\nClient and ConnPool based on the work of dvirsky and mnunberg on https://github.com/RediSearch/redisearch-go\n\n## Installing\n\n```sh\n$ go get github.com/RedisTimeSeries/redistimeseries-go\n```\n\n## Running tests\n\nA simple test suite is provided, and can be run with:\n\n```sh\n$ go test\n```\n\nThe tests expect a Redis server with the RedisTimeSeries module loaded to be available at localhost:6379\n\n## Example Code\n\n```go\npackage main \n\nimport (\n        \"fmt\"\n        redistimeseries \"github.com/RedisTimeSeries/redistimeseries-go\"\n)\n\nfunc main() {\n\t\t// Connect to localhost with no password\n        var client = redistimeseries.NewClient(\"localhost:6379\", \"nohelp\", nil)\n        var keyname = \"mytest\"\n        _, haveit := client.Info(keyname)\n        if haveit != nil {\n\t\t\tclient.CreateKeyWithOptions(keyname, redistimeseries.DefaultCreateOptions)\n\t\t\tclient.CreateKeyWithOptions(keyname+\"_avg\", redistimeseries.DefaultCreateOptions)\n\t\t\tclient.CreateRule(keyname, redistimeseries.AvgAggregation, 60, keyname+\"_avg\")\n        }\n\t\t// Add sample with timestamp from server time and value 100\n        // TS.ADD mytest * 100 \n        _, err := client.AddAutoTs(keyname, 100)\n        if err != nil {\n                fmt.Println(\"Error:\", err)\n        }\n}\n```\n\n## Supported RedisTimeSeries Commands\n\n| Command | Recommended API and godoc  |\n| :---          |  ----: |\n| [TS.CREATE](https://oss.redislabs.com/redistimeseries/commands/#tscreate) |   [CreateKeyWithOptions](https://godoc.org/github.com/RedisTimeSeries/redistimeseries-go#Client.CreateKeyWithOptions)          |\n| [TS.ALTER](https://oss.redislabs.com/redistimeseries/commands/#tsalter) |   [AlterKeyWithOptions](https://godoc.org/github.com/RedisTimeSeries/redistimeseries-go#Client.AlterKeyWithOptions)          |\n| [TS.ADD](https://oss.redislabs.com/redistimeseries/commands/#tsadd) |   \u003cul\u003e\u003cli\u003e[Add](https://godoc.org/github.com/RedisTimeSeries/redistimeseries-go#Client.Add)\u003c/li\u003e\u003cli\u003e[AddAutoTs](https://godoc.org/github.com/RedisTimeSeries/redistimeseries-go#Client.AddAutoTs)\u003c/li\u003e\u003cli\u003e[AddWithOptions](https://godoc.org/github.com/RedisTimeSeries/redistimeseries-go#Client.AddWithOptions)\u003c/li\u003e\u003cli\u003e[AddAutoTsWithOptions](https://godoc.org/github.com/RedisTimeSeries/redistimeseries-go#Client.AddWithOptions)\u003c/li\u003e \u003c/ul\u003e          |\n| [TS.MADD](https://oss.redislabs.com/redistimeseries/commands/#tsmadd) |    [MultiAdd](https://godoc.org/github.com/RedisTimeSeries/redistimeseries-go#Client.MultiAdd) |\n| [TS.INCRBY/TS.DECRBY](https://oss.redislabs.com/redistimeseries/commands/#tsincrbytsdecrby) |    [IncrBy](https://godoc.org/github.com/RedisTimeSeries/redistimeseries-go#Client.IncrBy) / [DecrBy](https://godoc.org/github.com/RedisTimeSeries/redistimeseries-go#Client.DecrBy)         |\n| [TS.CREATERULE](https://oss.redislabs.com/redistimeseries/commands/#tscreaterule) |   [CreateRule](https://godoc.org/github.com/RedisTimeSeries/redistimeseries-go#Client.CreateRule)          |\n| [TS.DELETERULE](https://oss.redislabs.com/redistimeseries/commands/#tsdeleterule) |   [DeleteRule](https://godoc.org/github.com/RedisTimeSeries/redistimeseries-go#Client.DeleteRule)          |\n| [TS.RANGE](https://oss.redislabs.com/redistimeseries/commands/#tsrangetsrevrange) |   [RangeWithOptions](https://godoc.org/github.com/RedisTimeSeries/redistimeseries-go#Client.RangeWithOptions)          |\n| [TS.REVRANGE](https://oss.redislabs.com/redistimeseries/commands/#tsrangetsrevrange) |   [ReverseRangeWithOptions](https://godoc.org/github.com/RedisTimeSeries/redistimeseries-go#Client.ReverseRangeWithOptions)  |\n| [TS.MRANGE](https://oss.redislabs.com/redistimeseries/commands/#tsmrangetsmrevrange) |   [MultiRangeWithOptions](https://godoc.org/github.com/RedisTimeSeries/redistimeseries-go#Client.MultiRangeWithOptions)          |\n| [TS.MREVRANGE](https://oss.redislabs.com/redistimeseries/commands/#tsmrangetsmrevrange) |   [MultiReverseRangeWithOptions](https://godoc.org/github.com/RedisTimeSeries/redistimeseries-go#Client.MultiReverseRangeWithOptions)          |\n| [TS.GET](https://oss.redislabs.com/redistimeseries/commands/#tsget) |   [Get](https://godoc.org/github.com/RedisTimeSeries/redistimeseries-go#Client.Get)          |\n| [TS.MGET](https://oss.redislabs.com/redistimeseries/commands/#tsmget) |   \u003cul\u003e\u003cli\u003e[MultiGet](https://godoc.org/github.com/RedisTimeSeries/redistimeseries-go#Client.MultiGet)\u003c/li\u003e\u003cli\u003e [MultiGetWithOptions](https://godoc.org/github.com/RedisTimeSeries/redistimeseries-go#Client.MultiGetWithOptions) \u003c/li\u003e \u003c/ul\u003e       |\n| [TS.INFO](https://oss.redislabs.com/redistimeseries/commands/#tsinfo) |   [Info](https://godoc.org/github.com/RedisTimeSeries/redistimeseries-go#Client.Info)          |\n| [TS.QUERYINDEX](https://oss.redislabs.com/redistimeseries/commands/#tsqueryindex) |    [QueryIndex](https://godoc.org/github.com/RedisTimeSeries/redistimeseries-go#Client.QueryIndex) |\n\n\n## License\n\nredistimeseries-go is distributed under the Apache-2 license - see [LICENSE](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fredistimeseries%2Fredistimeseries-go","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fredistimeseries%2Fredistimeseries-go","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fredistimeseries%2Fredistimeseries-go/lists"}