{"id":20105924,"url":"https://github.com/markthree/thermal-fn","last_synced_at":"2025-03-02T17:47:00.945Z","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":2,"default_branch":"main","last_synced_at":"2025-02-13T15:43:16.431Z","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","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","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241549089,"owners_count":19980475,"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":["fn","node","persistence"],"created_at":"2024-11-13T17:48:38.314Z","updated_at":"2025-03-02T17:47:00.926Z","avatar_url":"https://github.com/markthree.png","language":"TypeScript","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","funding_links":[],"categories":[],"sub_categories":[],"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"}