{"id":43386710,"url":"https://github.com/xiaojiaoyu100/roc","last_synced_at":"2026-02-02T11:18:49.692Z","repository":{"id":132712748,"uuid":"201931221","full_name":"xiaojiaoyu100/roc","owner":"xiaojiaoyu100","description":"KV Memory Cache","archived":false,"fork":false,"pushed_at":"2020-08-14T12:17:00.000Z","size":19,"stargazers_count":5,"open_issues_count":0,"forks_count":2,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-06-19T16:33:08.775Z","etag":null,"topics":["go","memorycache"],"latest_commit_sha":null,"homepage":"https://github.com/xiaojiaoyu100/roc","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/xiaojiaoyu100.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":"2019-08-12T13:00:54.000Z","updated_at":"2021-12-09T09:28:33.000Z","dependencies_parsed_at":null,"dependency_job_id":"298a05e7-1b27-49dc-8dd2-ec63f10bed21","html_url":"https://github.com/xiaojiaoyu100/roc","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/xiaojiaoyu100/roc","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xiaojiaoyu100%2Froc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xiaojiaoyu100%2Froc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xiaojiaoyu100%2Froc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xiaojiaoyu100%2Froc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xiaojiaoyu100","download_url":"https://codeload.github.com/xiaojiaoyu100/roc/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xiaojiaoyu100%2Froc/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29010927,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-02T10:37:29.253Z","status":"ssl_error","status_checked_at":"2026-02-02T10:37:28.644Z","response_time":58,"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":["go","memorycache"],"created_at":"2026-02-02T11:18:45.107Z","updated_at":"2026-02-02T11:18:49.686Z","avatar_url":"https://github.com/xiaojiaoyu100.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Roc\n\nRoc is a key-value memory cache.\n\n[![GoDoc](https://godoc.org/github.com/xiaojiaoyu100/roc?status.svg)](https://godoc.org/github.com/xiaojiaoyu100/roc)\n\n## Feature\n\n* Volatile LRU\n* Quick GC\n\n## Usage\n```go\npackage main\n\nimport (\n\t\"fmt\"\n\t\"github.com/xiaojiaoyu100/roc\"\n\t\"time\"\n)\n\nfunc main() {\n\tcache, err := roc.New()\n\tif err != nil {\n\t\tfmt.Println(err)\n\t\treturn\n\t}\n\tif err := cache.Set(\"myfirstkey\", \"123\", time.Second*3); err != nil {\n\t\tfmt.Println(err)\n\t\treturn\n\t}\n\tfmt.Println(cache.Get(\"myfirstkey\"))\n\tfmt.Println(cache.Del(\"myfirstkey\"))\n\tfmt.Println(cache.Get(\"myfirstkey\"))\n}\n```\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxiaojiaoyu100%2Froc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxiaojiaoyu100%2Froc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxiaojiaoyu100%2Froc/lists"}