{"id":16318986,"url":"https://github.com/sqlwwx/x-cacher","last_synced_at":"2026-01-28T13:36:19.547Z","repository":{"id":57400716,"uuid":"147148066","full_name":"sqlwwx/x-cacher","owner":"sqlwwx","description":null,"archived":false,"fork":false,"pushed_at":"2020-05-31T00:07:15.000Z","size":514,"stargazers_count":0,"open_issues_count":11,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-09-12T16:30:48.541Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://sqlwwx.github.io/x-cacher/","language":"JavaScript","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/sqlwwx.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-09-03T03:42:01.000Z","updated_at":"2020-07-30T12:57:22.000Z","dependencies_parsed_at":"2022-09-05T03:50:24.803Z","dependency_job_id":null,"html_url":"https://github.com/sqlwwx/x-cacher","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/sqlwwx/x-cacher","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sqlwwx%2Fx-cacher","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sqlwwx%2Fx-cacher/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sqlwwx%2Fx-cacher/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sqlwwx%2Fx-cacher/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sqlwwx","download_url":"https://codeload.github.com/sqlwwx/x-cacher/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sqlwwx%2Fx-cacher/sbom","scorecard":{"id":843056,"data":{"date":"2025-08-11","repo":{"name":"github.com/sqlwwx/x-cacher","commit":"3d2821af23cebe37ceab440abe34c74a61e84f00"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.6,"checks":[{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Code-Review","score":0,"reason":"Found 0/16 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"License","score":0,"reason":"license file not detected","details":["Warn: project does not have a license file"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 14 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-23T20:53:06.850Z","repository_id":57400716,"created_at":"2025-08-23T20:53:06.850Z","updated_at":"2025-08-23T20:53:06.850Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28846053,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-28T13:02:32.985Z","status":"ssl_error","status_checked_at":"2026-01-28T13:02:04.945Z","response_time":57,"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":[],"created_at":"2024-10-10T22:25:21.400Z","updated_at":"2026-01-28T13:36:19.529Z","avatar_url":"https://github.com/sqlwwx.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# x-cacher\n\n[![Build Status](https://travis-ci.org/sqlwwx/x-cacher.svg?branch=master)](https://travis-ci.org/sqlwwx/x-cacher)\n[![Coverage Status](https://coveralls.io/repos/github/sqlwwx/x-cacher/badge.svg?branch=master)](https://coveralls.io/github/sqlwwx/x-cacher?branch=master)\n[![Greenkeeper badge](https://badges.greenkeeper.io/sqlwwx/x-cacher.svg)](https://greenkeeper.io/)\n![npm](https://img.shields.io/npm/dt/x-cacher.svg)\n[![codebeat badge](https://codebeat.co/badges/6af1b073-049c-49bd-9968-b5cf4c10381f)](https://codebeat.co/projects/github-com-sqlwwx-x-cacher-master)\n\n## sample\n```\nimport { Cacher, cacherDes } from 'x-cacher'\n\nconst cacher = new Cacher([{ type: 'memory' }])\n\nclass Person {\n  constructor (name) {\n    this.name = name\n  }\n  @cacherDes(cacher, ({ name: personName }, methodName) =\u003e personName + ':' + methodName)\n  async eat () {\n    return new Promise(resolve =\u003e {\n      setTimeout(() =\u003e {\n        resolve(this.name + ' eat: '+ Math.random())\n      }, 2000)\n    })\n  }\n}\n\nconst personA = new Person('a')\n\njest.setTimeout(1000 * 60)\n\n/* eslint-env jest */\ndescribe('cacher', () =\u003e {\n  it('eat', async () =\u003e {\n    let startAt = Date.now()\n    let ret = await personA.eat()\n    expect(ret).toMatch(/^a eat: /)\n    expect(Date.now() - startAt).toBeGreaterThanOrEqual(2000)\n    startAt = Date.now()\n    let ret2 = await personA.eat()\n    expect(ret2).toMatch(/^a eat: /)\n    expect(ret).toEqual(ret2)\n    expect(Date.now() - startAt).toBeLessThan(1000)\n  })\n})\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsqlwwx%2Fx-cacher","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsqlwwx%2Fx-cacher","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsqlwwx%2Fx-cacher/lists"}