{"id":16985087,"url":"https://github.com/hejsil/cache","last_synced_at":"2025-04-12T03:24:06.143Z","repository":{"id":50579771,"uuid":"519347593","full_name":"Hejsil/cache","owner":"Hejsil","description":"Provides caching for any command line tool that does not have it","archived":false,"fork":false,"pushed_at":"2024-04-22T12:18:14.000Z","size":34,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-05-02T02:55:55.136Z","etag":null,"topics":["cache","cli","zig"],"latest_commit_sha":null,"homepage":"","language":"Zig","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/Hejsil.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","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},"funding":{"github":["Hejsil"]}},"created_at":"2022-07-29T20:56:40.000Z","updated_at":"2024-05-07T12:28:19.619Z","dependencies_parsed_at":"2024-02-12T09:46:11.249Z","dependency_job_id":"9a807d59-9ba9-4880-b2a3-7999f70799ce","html_url":"https://github.com/Hejsil/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/Hejsil%2Fcache","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hejsil%2Fcache/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hejsil%2Fcache/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hejsil%2Fcache/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Hejsil","download_url":"https://codeload.github.com/Hejsil/cache/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248510993,"owners_count":21116325,"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","cli","zig"],"created_at":"2024-10-14T02:36:52.909Z","updated_at":"2025-04-12T03:24:06.114Z","avatar_url":"https://github.com/Hejsil.png","language":"Zig","funding_links":["https://github.com/sponsors/Hejsil"],"categories":[],"sub_categories":[],"readme":"# cache\n\nCan wrap any command line tool to provide caching for the output of that tool.\n\n## Example\n\n```sh\n$ # We can use curl to get the weather data from wttr.in\n$ curl -s 'https://wttr.in/'\n...\n\n$ # Caching this command is simple. It only depends on the arguments of the command,\n$ # and outputs to stdout\n$ cache -- curl -s 'https://wttr.in/'\n...\n\n$ # Now, this is cached and will never be invalidated (unless you delete\n$ # ~/.cache/cache). We can specify that the command depends on external data. Let's\n$ # have it depend on the output of `date`, so the cache is invalidated each day\n$ cache -s \"$(date +%Y-%m-%d)\" -- curl -s 'https://wttr.in/'\n...\n\n$ # You can mark a command to depend on different things like environment variables\n$ # (-e), files (-f) or even stdin (--stdin).\n\n$ # cache can also handle if a command outputs to one or more files. You need to\n$ # manually list the files the command will output\n$ cache -o test -f test.c -- gcc -o test test.c\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhejsil%2Fcache","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhejsil%2Fcache","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhejsil%2Fcache/lists"}