{"id":16642050,"url":"https://github.com/make-github-pseudonymous-again/memoize","last_synced_at":"2025-07-14T15:38:00.295Z","repository":{"id":40301882,"uuid":"87737315","full_name":"make-github-pseudonymous-again/memoize","owner":"make-github-pseudonymous-again","description":":floppy_disk: Cache executable calls","archived":false,"fork":false,"pushed_at":"2025-05-11T22:55:26.000Z","size":102,"stargazers_count":2,"open_issues_count":5,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-11T23:26:38.609Z","etag":null,"topics":["agpl","caching","executable","memoization","memoize","shell-scripts"],"latest_commit_sha":null,"homepage":"https://github.com/make-github-pseudonymous-again/memoize","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/make-github-pseudonymous-again.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,"zenodo":null}},"created_at":"2017-04-09T20:35:19.000Z","updated_at":"2022-02-12T00:15:53.000Z","dependencies_parsed_at":"2022-07-29T00:38:25.018Z","dependency_job_id":"4b10b7c8-2c54-4baa-85d1-534471c41435","html_url":"https://github.com/make-github-pseudonymous-again/memoize","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/make-github-pseudonymous-again/memoize","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/make-github-pseudonymous-again%2Fmemoize","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/make-github-pseudonymous-again%2Fmemoize/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/make-github-pseudonymous-again%2Fmemoize/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/make-github-pseudonymous-again%2Fmemoize/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/make-github-pseudonymous-again","download_url":"https://codeload.github.com/make-github-pseudonymous-again/memoize/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/make-github-pseudonymous-again%2Fmemoize/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265313319,"owners_count":23745189,"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":["agpl","caching","executable","memoization","memoize","shell-scripts"],"created_at":"2024-10-12T07:48:43.780Z","updated_at":"2025-07-14T15:38:00.277Z","avatar_url":"https://github.com/make-github-pseudonymous-again.png","language":"Rust","readme":":floppy_disk: memoize\n[![License](https://img.shields.io/github/license/make-github-pseudonymous-again/memoize.svg?style=flat)](https://raw.githubusercontent.com/make-github-pseudonymous-again/memoize/main/LICENSE)\n[![Tests](https://img.shields.io/github/actions/workflow/status/make-github-pseudonymous-again/memoize/ci:test.yml?branch=main\u0026event=push\u0026label=tests)](https://github.com/make-github-pseudonymous-again/memoize/actions/workflows/ci:test.yml?query=branch:main)\n[![Code coverage](https://img.shields.io/codecov/c/github/make-github-pseudonymous-again/memoize.svg)](https://codecov.io/gh/make-github-pseudonymous-again/memoize)\n==\n\nCache executable calls.\n\n## :minidisc: Install [![AUR package](https://img.shields.io/aur/version/memoize)](https://aur.archlinux.org/packages/memoize)\n\n```sh\nmake DESTDIR=/ PREFIX=/usr install\n```\n\n## :woman_astronaut: Usage\n\n```shell\n$ cat fib\nn=\"$1\"\nif [ \"$n\" -eq 0 ] ; then echo 0\nelif [ \"$n\" -eq 1 ] ; then echo 1\nelse\n\ta=\"$(MEMOIZE_CACHE=\"/tmp/${USER}-memoize\" memoize 9999 sh fib $((n-1)))\"\n\tb=\"$(MEMOIZE_CACHE=\"/tmp/${USER}-memoize\" memoize 9999 sh fib $((n-2)))\"\n\techo \"$a + $b\" | bc\nfi\n$ sh fib 100\n354224848179261915075\n$ sh fib 200\n280571172992510140037611932413038677189525\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmake-github-pseudonymous-again%2Fmemoize","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmake-github-pseudonymous-again%2Fmemoize","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmake-github-pseudonymous-again%2Fmemoize/lists"}