{"id":17962327,"url":"https://github.com/rakannimer/with-fs-cache","last_synced_at":"2025-06-15T15:04:23.357Z","repository":{"id":66139379,"uuid":"143851507","full_name":"rakannimer/with-fs-cache","owner":"rakannimer","description":"Wrap any async method with a filesystem cache. Convenience methods around cache-manager and cache-manager-fs.","archived":false,"fork":false,"pushed_at":"2018-08-19T11:31:06.000Z","size":43,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-09T07:23:58.975Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/rakannimer.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":"2018-08-07T09:35:02.000Z","updated_at":"2018-08-19T11:31:07.000Z","dependencies_parsed_at":"2023-03-10T23:39:54.893Z","dependency_job_id":null,"html_url":"https://github.com/rakannimer/with-fs-cache","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rakannimer%2Fwith-fs-cache","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rakannimer%2Fwith-fs-cache/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rakannimer%2Fwith-fs-cache/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rakannimer%2Fwith-fs-cache/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rakannimer","download_url":"https://codeload.github.com/rakannimer/with-fs-cache/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247061882,"owners_count":20877176,"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-10-29T11:18:59.031Z","updated_at":"2025-04-03T19:19:42.315Z","avatar_url":"https://github.com/rakannimer.png","language":"TypeScript","readme":"## with-fs-cache\n\nWrap any method, sync or async with a File System Cache.\n\n## Usage\n\n```typescript\nconst sleep = ms =\u003e new Promise(resolve =\u003e setTimeout(resolve, ms));\n\nconst myID = await withFsCache(\n  // Can be anything\n  \"my-id\",\n  async () =\u003e {\n    await sleep(500);\n    functionCallCount += 1;\n    return { someData: \"1\" };\n  }\n);\n\n// If called again it will return without waiting.\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frakannimer%2Fwith-fs-cache","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frakannimer%2Fwith-fs-cache","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frakannimer%2Fwith-fs-cache/lists"}