{"id":21843569,"url":"https://github.com/ariafallah/weak-memoize","last_synced_at":"2025-04-14T12:06:46.053Z","repository":{"id":134844656,"uuid":"56035568","full_name":"AriaFallah/weak-memoize","owner":"AriaFallah","description":"Self-invalidating memoization for async functions","archived":false,"fork":false,"pushed_at":"2017-01-24T04:14:54.000Z","size":33,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-14T12:06:39.925Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/AriaFallah.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2016-04-12T06:00:58.000Z","updated_at":"2023-03-08T16:52:07.000Z","dependencies_parsed_at":null,"dependency_job_id":"93378317-5c31-4ef9-9810-9a371f18e94d","html_url":"https://github.com/AriaFallah/weak-memoize","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AriaFallah%2Fweak-memoize","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AriaFallah%2Fweak-memoize/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AriaFallah%2Fweak-memoize/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AriaFallah%2Fweak-memoize/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AriaFallah","download_url":"https://codeload.github.com/AriaFallah/weak-memoize/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248877984,"owners_count":21176243,"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":[],"created_at":"2024-11-27T22:15:49.179Z","updated_at":"2025-04-14T12:06:46.010Z","avatar_url":"https://github.com/AriaFallah.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Weak Memoize\n\nMemoizes async functions, caching the returned promise, but later deleting the promise\nfrom the cache once it resolves.\n\n## Why\n\nI made this to address the problem I encountered here:\n\u003e [Prevent multiple async calls from all attempting to refresh an expired OAuth token][1]\n\n[1]: http://codereview.stackexchange.com/q/125601/69082\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fariafallah%2Fweak-memoize","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fariafallah%2Fweak-memoize","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fariafallah%2Fweak-memoize/lists"}