{"id":48266749,"url":"https://github.com/2manymws/rc","last_synced_at":"2026-04-04T21:56:06.447Z","repository":{"id":192513735,"uuid":"686892088","full_name":"2manymws/rc","owner":"2manymws","description":"rc is a response cache middleware for cache.","archived":false,"fork":false,"pushed_at":"2026-03-01T03:17:51.000Z","size":251,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-03-01T06:35:38.749Z","etag":null,"topics":["go","http-middleware","response-cache","rfc9111"],"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/2manymws.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2023-09-04T07:04:42.000Z","updated_at":"2026-03-01T03:17:36.000Z","dependencies_parsed_at":"2026-03-01T05:09:09.195Z","dependency_job_id":null,"html_url":"https://github.com/2manymws/rc","commit_stats":null,"previous_names":["k1low/rc","2manymws/rc"],"tags_count":36,"template":false,"template_full_name":null,"purl":"pkg:github/2manymws/rc","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/2manymws%2Frc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/2manymws%2Frc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/2manymws%2Frc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/2manymws%2Frc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/2manymws","download_url":"https://codeload.github.com/2manymws/rc/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/2manymws%2Frc/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31415830,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-04T20:09:54.854Z","status":"ssl_error","status_checked_at":"2026-04-04T20:09:44.350Z","response_time":60,"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","http-middleware","response-cache","rfc9111"],"created_at":"2026-04-04T21:56:06.247Z","updated_at":"2026-04-04T21:56:06.443Z","avatar_url":"https://github.com/2manymws.png","language":"Go","readme":"# rc [![Go Reference](https://pkg.go.dev/badge/github.com/2manymws/rc.svg)](https://pkg.go.dev/github.com/2manymws/rc) [![build](https://github.com/2manymws/rc/actions/workflows/ci.yml/badge.svg)](https://github.com/2manymws/rc/actions/workflows/ci.yml) ![Coverage](https://raw.githubusercontent.com/k1LoW/octocovs/main/badges/2manymws/rc/coverage.svg) ![Code to Test Ratio](https://raw.githubusercontent.com/k1LoW/octocovs/main/badges/2manymws/rc/ratio.svg) ![Test Execution Time](https://raw.githubusercontent.com/k1LoW/octocovs/main/badges/2manymws/rc/time.svg)\n\n`rc` is a **r**esponse **c**ache middleware for cache.\n\n## Usage\n\nPrepare an instance that implements [`rc.Casher`](https://pkg.go.dev/github.com/2manymws/rc#Cacher) interface.\n\nThen, generate the middleware ( `func(next http.Handler) http.Handler` ) with [`rc.New`](https://pkg.go.dev/github.com/2manymws/rc#New)\n\n```go\npackage main\n\nimport (\n    \"log\"\n    \"net/http\"\n\n    \"github.com/2manymws/rc\"\n)\n\nfunc main() {\n    r := http.NewServeMux()\n    r.HandleFunc(\"/\", func(w http.ResponseWriter, r *http.Request) {\n        w.Write([]byte(\"Hello World\"))\n    })\n\n    var c rc.Cacher = newMyCacher()\n    m := rc.New(c)\n\n    log.Fatal(http.ListenAndServe(\":8080\", m(r)))\n}\n```\n\n## Utility functions\n\nSee https://github.com/2manymws/rcutil\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F2manymws%2Frc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F2manymws%2Frc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F2manymws%2Frc/lists"}