{"id":26540488,"url":"https://github.com/mccutchen/fillcache","last_synced_at":"2025-03-22T00:33:49.682Z","repository":{"id":47073652,"uuid":"137506854","full_name":"mccutchen/fillcache","owner":"mccutchen","description":"A simple in-process cache with single-flight filling semantics","archived":false,"fork":false,"pushed_at":"2024-10-16T02:16:39.000Z","size":30,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-10-18T12:44:15.976Z","etag":null,"topics":["cache","go","golang","singleflight"],"latest_commit_sha":null,"homepage":"https://pkg.go.dev/github.com/mccutchen/fillcache","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/mccutchen.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":"2018-06-15T15:57:55.000Z","updated_at":"2024-10-16T02:16:42.000Z","dependencies_parsed_at":"2024-06-21T02:11:03.926Z","dependency_job_id":"e3f7e858-3938-4589-8644-245f997b9368","html_url":"https://github.com/mccutchen/fillcache","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mccutchen%2Ffillcache","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mccutchen%2Ffillcache/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mccutchen%2Ffillcache/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mccutchen%2Ffillcache/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mccutchen","download_url":"https://codeload.github.com/mccutchen/fillcache/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244890102,"owners_count":20527030,"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":["cache","go","golang","singleflight"],"created_at":"2025-03-22T00:33:41.868Z","updated_at":"2025-03-22T00:33:49.666Z","avatar_url":"https://github.com/mccutchen.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# fillcache\n\n[![Documentation](https://pkg.go.dev/badge/github.com/mccutchen/fillcache)](https://pkg.go.dev/github.com/mccutchen/fillcache)\n[![Build status](https://github.com/mccutchen/fillcache/actions/workflows/ci.yaml/badge.svg)](https://github.com/mccutchen/fillcache/actions/workflows/ci.yaml)\n[![Code coverage](https://codecov.io/gh/mccutchen/fillcache/branch/main/graph/badge.svg)](https://codecov.io/gh/mccutchen/fillcache)\n[![Go report card](http://goreportcard.com/badge/github.com/mccutchen/fillcache)](https://goreportcard.com/report/github.com/mccutchen/fillcache)\n\nAn in-process cache with single-flight filling semantics.\n\nIn short: Given a function that computes the value to be cached for a key, it\nwill ensure that the function is called only once per key no matter how many\nconcurrent cache gets are issued for a key.\n\nThis might be useful if, say, you find yourself reaching for the\n[`singleflight` package][singleflight] _and_ you want to cache the resulting\nvalues in memory.\n\n\n## Usage\n\nSee [example_test.go](/example_test.go) for example usage.\n\n\n## Testing\n\n```bash\nmake test\n```\n\n\n## Credits\n\nIf you like this package, all credit should go to [@jphines][jphines], who\nsuggested the initial design as we were working through an in-process DNS\ncaching mechanism.\n\nIf you don't like its design or its implementation, all blame lies with\n[@mccutchen][mccutchen].\n\n\n[singleflight]: https://godoc.org/golang.org/x/sync/singleflight\n[jphines]: https://github.com/jphines\n[mccutchen]: https://github.com/mccutchen\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmccutchen%2Ffillcache","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmccutchen%2Ffillcache","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmccutchen%2Ffillcache/lists"}