{"id":20105924,"url":"https://github.com/markthree/thermal-fn","last_synced_at":"2026-05-12T14:36:09.132Z","repository":{"id":153132566,"uuid":"628257040","full_name":"markthree/thermal-fn","owner":"markthree","description":"Persistence Cache Function | 持久化缓存函数 ","archived":false,"fork":false,"pushed_at":"2024-02-28T04:33:58.000Z","size":30,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-22T13:36:12.750Z","etag":null,"topics":["fn","node","persistence"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/markthree.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":"2023-04-15T11:42:15.000Z","updated_at":"2023-04-15T11:45:10.000Z","dependencies_parsed_at":null,"dependency_job_id":"5b68178e-09ad-427f-af0d-4e552440a2ac","html_url":"https://github.com/markthree/thermal-fn","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":"markthree/node-lib-starter","purl":"pkg:github/markthree/thermal-fn","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markthree%2Fthermal-fn","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markthree%2Fthermal-fn/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markthree%2Fthermal-fn/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markthree%2Fthermal-fn/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/markthree","download_url":"https://codeload.github.com/markthree/thermal-fn/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markthree%2Fthermal-fn/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32943757,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-12T09:19:52.626Z","status":"ssl_error","status_checked_at":"2026-05-12T09:17:33.438Z","response_time":102,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["fn","node","persistence"],"created_at":"2024-11-13T17:48:38.314Z","updated_at":"2026-05-12T14:36:09.112Z","avatar_url":"https://github.com/markthree.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# thermal-fn\n\nPersistence Cache Function | 持久化缓存函数\n\n\u003cbr /\u003e\n\n## Usage\n\n### install\n\n```shell\nnpm i thermal-fn\n```\n\n```ts\nimport { useThermal } from \"thermal-fn\"\n\nconst { invoke } = useThermal()\n\n// The node will execute caching, even if the node restarts\n// node 将会执行缓存，即使 node 重新启动\nconst result = await invoke(function largeComputing(boundary) {\n  let i = 0;\n  while (boundary - i !== 0) {\n    i++;\n  }\n  return i;\n}, 1000000000)\n```\n\n\u003cbr /\u003e\n\n\n## License\n\nMade with [markthree](https://github.com/markthree)\n\nPublished under [MIT License](./LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarkthree%2Fthermal-fn","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarkthree%2Fthermal-fn","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarkthree%2Fthermal-fn/lists"}