{"id":15835067,"url":"https://github.com/kaelzhang/cacheman-redis","last_synced_at":"2026-05-01T23:39:18.132Z","repository":{"id":57134380,"uuid":"177060474","full_name":"kaelzhang/cacheman-redis","owner":"kaelzhang","description":"Redis standalone caching library for Node.JS and also cache engine for cacheman","archived":false,"fork":false,"pushed_at":"2019-03-22T02:48:27.000Z","size":41,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-04-07T21:38:55.542Z","etag":null,"topics":["cacheman","cacheman-engine","nodejs"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kaelzhang.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}},"created_at":"2019-03-22T02:48:10.000Z","updated_at":"2019-03-22T02:49:41.000Z","dependencies_parsed_at":"2022-09-04T09:11:38.511Z","dependency_job_id":null,"html_url":"https://github.com/kaelzhang/cacheman-redis","commit_stats":null,"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"purl":"pkg:github/kaelzhang/cacheman-redis","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kaelzhang%2Fcacheman-redis","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kaelzhang%2Fcacheman-redis/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kaelzhang%2Fcacheman-redis/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kaelzhang%2Fcacheman-redis/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kaelzhang","download_url":"https://codeload.github.com/kaelzhang/cacheman-redis/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kaelzhang%2Fcacheman-redis/sbom","scorecard":{"id":547071,"data":{"date":"2025-08-11","repo":{"name":"github.com/kaelzhang/cacheman-redis","commit":"a1b402f3fb8c5db82646432141275ec9980e8b24"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"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":"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":"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":"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":"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":"Code-Review","score":0,"reason":"Found 0/30 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":"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":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"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":"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":"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":"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":"License","score":9,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Warn: project license file does not contain an FSF or OSI license."],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"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"}}]},"last_synced_at":"2025-08-20T09:48:52.131Z","repository_id":57134380,"created_at":"2025-08-20T09:48:52.132Z","updated_at":"2025-08-20T09:48:52.132Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32517232,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-30T13:12:12.517Z","status":"online","status_checked_at":"2026-05-01T02:00:05.856Z","response_time":64,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["cacheman","cacheman-engine","nodejs"],"created_at":"2024-10-05T14:20:24.605Z","updated_at":"2026-05-01T23:39:18.096Z","avatar_url":"https://github.com/kaelzhang.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build Status](https://travis-ci.org/kaelzhang/cacheman-redis.svg?branch=master)](https://travis-ci.org/kaelzhang/cacheman-redis)\n\n\u003c!-- [![Coverage](https://codecov.io/gh/BiJie/binance-scripts/branch/master/graph/badge.svg)](https://codecov.io/gh/BiJie/binance-scripts) --\u003e\n\n# @ostai/cacheman-redis\n\nRedis standalone caching library for Node.JS and also cache engine for [cacheman](https://github.com/cayasso/cacheman).\n\nThis fork removes peer dependencies `redis` and only supports to create a `CachemanRedis` with a redis client\n\n## Install\n\n``` bash\n$ npm i @ostai/cacheman-redis\n```\n\n## Usage\n\n```js\nconst CachemanRedis = require('@ostai/cacheman-redis')\nconst Redis = require('ioredis')\nconst cache = new CachemanRedis(new Redis())\n\n// set the value\ncache.set('key', {foo: 'bar'}, err =\u003e {\n  if (err) {\n    throw err\n  }\n\n  console.log('succeeded')\n})\n\n// But for most cases,\n// CachemanRedis is used as an engine of Cacheman\nconst Cacheman = require('cacheman')\nconst man = new Cacheman('prefix', {\n  engine: cache\n})\n\nconst value = await man.get('key')\n```\n\n## API\n\n### CachemanRedis(client, options?)\n\n- **client** `RedisClient` redis `client` instance\n- **options** `?Object`\n  - **prefix** `?string=''` key prefix\n\nCreate a `CachemanRedis` instance.\n\n```js\nconst Redis = require('ioredis')\nconst cache = new CachemanRedis(new Redis())\n```\n\n### cache.set(key, value, ttl?, callback?)\n\nStores or updates a value.\n\n```javascript\ncache.set('foo', { a: 'bar' }, function (err, value) {\n  if (err) throw err\n  console.log(value) //-\u003e {a:'bar'}\n})\n```\n\nOr add a TTL(Time To Live) in seconds like this:\n\n```javascript\n// key will expire in 60 seconds\ncache.set('foo', {a: 'bar'}, 60, (err, value) =\u003e {\n  if (err) throw err\n  console.log(value) //-\u003e {a:'bar'}\n})\n```\n\n### cache.get(key, callback?)\n\nRetrieves a value for a given key, if there is no value for the given key a null value will be returned.\n\n```js\ncache.get(key, (err, value) =\u003e {\n  if (err) throw err\n  console.log(value)\n})\n```\n\n### cache.del(key, callback?)\n\nDeletes a key out of the cache.\n\n```javascript\ncache.del('foo', err =\u003e {\n  if (err) throw err\n  // foo was deleted\n})\n```\n\n### cache.clear(callback?)\n\nClear the cache entirely, throwing away all values.\n\n```javascript\ncache.clear(err =\u003e {\n  if (err) throw err\n  // cache is now clear\n})\n```\n\n## Run tests\n\n``` bash\n$ make test\n```\n\n## License\n\n[MIT](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkaelzhang%2Fcacheman-redis","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkaelzhang%2Fcacheman-redis","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkaelzhang%2Fcacheman-redis/lists"}