{"id":36677660,"url":"https://github.com/fanjindong/go-rede","last_synced_at":"2026-01-12T10:52:10.264Z","repository":{"id":57521233,"uuid":"246967902","full_name":"fanjindong/go-rede","owner":"fanjindong","description":"A Redis snooze delayed queue package for go","archived":false,"fork":false,"pushed_at":"2022-06-29T02:38:25.000Z","size":315,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-15T15:48:52.689Z","etag":null,"topics":["delayqueue","rede","snooze"],"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/fanjindong.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}},"created_at":"2020-03-13T01:57:57.000Z","updated_at":"2022-06-29T02:38:54.000Z","dependencies_parsed_at":"2022-09-26T18:01:15.002Z","dependency_job_id":null,"html_url":"https://github.com/fanjindong/go-rede","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/fanjindong/go-rede","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fanjindong%2Fgo-rede","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fanjindong%2Fgo-rede/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fanjindong%2Fgo-rede/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fanjindong%2Fgo-rede/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fanjindong","download_url":"https://codeload.github.com/fanjindong/go-rede/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fanjindong%2Fgo-rede/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28338846,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-12T10:40:25.642Z","status":"ssl_error","status_checked_at":"2026-01-12T10:39:27.820Z","response_time":98,"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":["delayqueue","rede","snooze"],"created_at":"2026-01-12T10:52:10.161Z","updated_at":"2026-01-12T10:52:10.226Z","avatar_url":"https://github.com/fanjindong.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Rede [中文](./README_ZH.md)\n\n:rocket: **A Rede is a fancy snooze delayed queue**\n\n![](./images/SnoozyTheBear_ZH-CN1561515228_1920x1080.jpg)\n\nYou can use the `Push` method to set a snooze time for an element. \nUnless the time comes, the element will not wake up. \nGet the collection of elements that have woken up through the `poll` method.\n\n\n## Installation\n```shell script\ngo get -u github.com/fanjindong/go-rede\n```\n\n## Features\n- Rede built on redis\n- Snooze time can be updated\n- Api is concise, such as `Push`, `Poll`\n- Data persistent storage\n\n## Requirements\n- Go \u003e= 1.10.\n- Redis \u003e= 5.0.\n\n## Quickstart\n\n```go\nfunc main() {\n\trd := rede.NewClient(\u0026rede.Options{Namespaces: \"demo\", Addr: \"127.0.0.1:6379\"}) // Redis.Addr + Namespaces\n\n\trd.Push(\"a\", 1*time.Second)\n\trd.Push(\"b\", 1*time.Second)\n\trd.Push(\"c\", 2*time.Second)\n\n\ttime.Sleep(1 * time.Second)\n\n\tcur := rd.Poll()\n\tfor cur.Next() {\n\t    got, _ := cur.Get()\n\t    fmt.Println(got)\n\t}\n\t// out:\n\t// \"a\" \n\t// \"b\"\n}\n```\n\n## Usage\n\n- Push\n\nPush an element to `rede` and set a snooze time.\nThe element will not wake up until the time is up.\n- Pull\n\nPull an element and remove it from `rede`.\n- Look\n\nView the remaining snooze time of an element.\n- Ttn\n\nView the remaining snooze time of the element that wakes up fastest in `rede`.\n- Poll\n\nPoll the elements that have woken up.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffanjindong%2Fgo-rede","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffanjindong%2Fgo-rede","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffanjindong%2Fgo-rede/lists"}