{"id":20791468,"url":"https://github.com/kvtools/redis","last_synced_at":"2025-04-07T10:28:41.651Z","repository":{"id":59047336,"uuid":"533847649","full_name":"kvtools/redis","owner":"kvtools","description":"Valkeyrie: redis","archived":false,"fork":false,"pushed_at":"2025-03-27T22:53:49.000Z","size":76,"stargazers_count":3,"open_issues_count":3,"forks_count":6,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-31T09:05:55.679Z","etag":null,"topics":["go","golang","kv-store","redis","valkeyrie"],"latest_commit_sha":null,"homepage":"","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/kvtools.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,"publiccode":null,"codemeta":null}},"created_at":"2022-09-07T16:25:13.000Z","updated_at":"2025-03-27T22:53:53.000Z","dependencies_parsed_at":"2024-11-17T15:47:27.559Z","dependency_job_id":"bab7111b-af4e-43f7-b627-fe6d254cab52","html_url":"https://github.com/kvtools/redis","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kvtools%2Fredis","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kvtools%2Fredis/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kvtools%2Fredis/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kvtools%2Fredis/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kvtools","download_url":"https://codeload.github.com/kvtools/redis/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247634968,"owners_count":20970644,"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":["go","golang","kv-store","redis","valkeyrie"],"created_at":"2024-11-17T15:44:49.196Z","updated_at":"2025-04-07T10:28:41.633Z","avatar_url":"https://github.com/kvtools.png","language":"Go","funding_links":[],"categories":["Go"],"sub_categories":[],"readme":"# Valkeyrie Redis\n\n[![GoDoc](https://godoc.org/github.com/kvtools/redis?status.png)](https://godoc.org/github.com/kvtools/redis)\n[![Build Status](https://github.com/kvtools/redis/actions/workflows/build.yml/badge.svg)](https://github.com/kvtools/redis/actions/workflows/build.yml)\n[![Go Report Card](https://goreportcard.com/badge/github.com/kvtools/redis)](https://goreportcard.com/report/github.com/kvtools/redis)\n\n[`valkeyrie`](https://github.com/kvtools/valkeyrie) provides a Go native library to store metadata using Distributed Key/Value stores (or common databases).\n\n## Compatibility\n\nA **storage backend** in `valkeyrie` implements (fully or partially) the [Store](https://github.com/kvtools/valkeyrie/blob/master/store/store.go#L69) interface.\n\n| Calls                 | Redis |\n|-----------------------|:-----:|\n| Put                   |  🟢️  |\n| Get                   |  🟢️  |\n| Delete                |  🟢️  |\n| Exists                |  🟢️  |\n| Watch                 |  🟢️  |\n| WatchTree             |  🟢️  |\n| NewLock (Lock/Unlock) |  🟢️  |\n| List                  |  🟢️  |\n| DeleteTree            |  🟢️  |\n| AtomicPut             |  🟢️  |\n| AtomicDelete          |  🟢️  |\n\n## Supported Versions\n\nRedis versions \u003e= `3.2.6`.\n[Key space notification](https://redis.io/topics/notifications) needs to be enabled to have access to Watch and Lock methods.\n\n## Examples\n\n```go\npackage main\n\nimport (\n\t\"context\"\n\t\"log\"\n\n\t\"github.com/kvtools/redis\"\n\t\"github.com/kvtools/valkeyrie\"\n)\n\nfunc main() {\n\tctx := context.Background()\n\n\tconfig := \u0026redis.Config{\n\t\tBucket: \"example\",\n\t}\n\n\tkv, err := valkeyrie.NewStore(ctx, redis.StoreName, []string{\"localhost:8500\"}, config)\n\tif err != nil {\n\t\tlog.Fatal(\"Cannot create store\")\n\t}\n\n\tkey := \"foo\"\n\n\terr = kv.Put(ctx, key, []byte(\"bar\"), nil)\n\tif err != nil {\n\t\tlog.Fatalf(\"Error trying to put value at key: %v\", key)\n\t}\n\n\tpair, err := kv.Get(ctx, key, nil)\n\tif err != nil {\n\t\tlog.Fatalf(\"Error trying accessing value at key: %v\", key)\n\t}\n\n\tlog.Printf(\"value: %s\", string(pair.Value))\n\n\terr = kv.Delete(ctx, key)\n\tif err != nil {\n\t\tlog.Fatalf(\"Error trying to delete key %v\", key)\n\t}\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkvtools%2Fredis","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkvtools%2Fredis","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkvtools%2Fredis/lists"}