{"id":28936122,"url":"https://github.com/aalfiann/recacheman-memory","last_synced_at":"2026-01-20T16:37:28.895Z","repository":{"id":57349107,"uuid":"324264189","full_name":"aalfiann/recacheman-memory","owner":"aalfiann","description":"In-memory caching library for Node.JS and also cache engine for recacheman.","archived":false,"fork":false,"pushed_at":"2025-05-16T08:55:55.000Z","size":56,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-04T19:49:36.301Z","etag":null,"topics":["cacheman","cacheman-engine","in-memory-cache","memory-cache","recacheman"],"latest_commit_sha":null,"homepage":"https://nodei.co/npm/recacheman-memory","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/aalfiann.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2020-12-25T01:23:59.000Z","updated_at":"2025-05-16T08:55:46.000Z","dependencies_parsed_at":"2025-06-01T05:12:24.651Z","dependency_job_id":"4bb02bfb-fbe5-44de-8446-1d27e6f4e9c7","html_url":"https://github.com/aalfiann/recacheman-memory","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/aalfiann/recacheman-memory","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aalfiann%2Frecacheman-memory","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aalfiann%2Frecacheman-memory/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aalfiann%2Frecacheman-memory/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aalfiann%2Frecacheman-memory/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aalfiann","download_url":"https://codeload.github.com/aalfiann/recacheman-memory/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aalfiann%2Frecacheman-memory/sbom","scorecard":{"id":158796,"data":{"date":"2025-08-11","repo":{"name":"github.com/aalfiann/recacheman-memory","commit":"2c69c10d474a2ce53163e92238e2aeb7581330f2"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.6,"checks":[{"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/6 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":"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":"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":"Maintained","score":1,"reason":"2 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 1","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"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":"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":"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":"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":"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":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":"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":"Vulnerabilities","score":9,"reason":"1 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-16T12:44:40.802Z","repository_id":57349107,"created_at":"2025-08-16T12:44:40.802Z","updated_at":"2025-08-16T12:44:40.802Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271711956,"owners_count":24807702,"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","status":"online","status_checked_at":"2025-08-22T02:00:08.480Z","response_time":65,"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","in-memory-cache","memory-cache","recacheman"],"created_at":"2025-06-22T20:07:43.683Z","updated_at":"2026-01-20T16:37:28.882Z","avatar_url":"https://github.com/aalfiann.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003e This is a fork version of [cacheman-memory](https://github.com/cayasso/cacheman-memory)\n\n# recacheman-memory\n\n[![NPM](https://nodei.co/npm/recacheman-memory.png?downloads=true\u0026downloadRank=true\u0026stars=true)](https://nodei.co/npm/recacheman-memory/)  \n  \n[![npm version](https://img.shields.io/npm/v/recacheman-memory.svg?style=flat-square)](https://www.npmjs.org/package/recacheman-memory)\n[![CircleCI](https://dl.circleci.com/status-badge/img/gh/aalfiann/recacheman-memory/tree/master.svg?style=svg)](https://dl.circleci.com/status-badge/redirect/gh/aalfiann/recacheman-memory/tree/master)\n[![Known Vulnerabilities](https://snyk.io//test/github/aalfiann/recacheman-memory/badge.svg?targetFile=package.json)](https://snyk.io//test/github/aalfiann/recacheman-memory?targetFile=package.json)\n![License](https://img.shields.io/npm/l/recacheman-memory)\n![NPM download/month](https://img.shields.io/npm/dm/recacheman-memory.svg)\n![NPM download total](https://img.shields.io/npm/dt/recacheman-memory.svg)\n\nIn-memory caching library for Node.JS and also cache engine for [recacheman](https://github.com/aalfiann/recacheman).\n\n| Version | Node.JS |\n|---|---|\n| 1.x | 10, 12, 14, 16, 18, 20 |\n| 2.x | 20, 22 |\n\n## Instalation\n\n``` bash\n$ npm install recacheman-memory\n```\n\n## Usage\n\n```javascript\nvar CachemanMemory = require('recacheman-memory');\nvar cache = new CachemanMemory();\n\n// set the value\ncache.set('my key', { foo: 'bar' }, function (error) {\n\n  if (error) throw error;\n\n  // get the value\n  cache.get('my key', function (error, value) {\n\n    if (error) throw error;\n\n    console.log(value); //-\u003e {foo:\"bar\"}\n\n    // delete entry\n    cache.del('my key', function (error){\n\n      if (error) throw error;\n\n      console.log('value deleted');\n    });\n\n  });\n});\n```\n\n## API\n\n### CachemanMemory()\n\nCreate `cacheman-memory` instance.\n\n```javascript\nvar cache = new CachemanMemory();\n```\n\n### cache.set(key, value, [ttl, [fn]])\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, function (err, value) {\n  if (err) throw err;\n  console.log(value); //-\u003e {a:'bar'}\n});\n```\n\n### cache.get(key, fn)\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```javascript\ncache.get(function (err, value) {\n  if (err) throw err;\n  console.log(value);\n});\n```\n\n### cache.del(key, [fn])\n\nDeletes a key out of the cache.\n\n```javascript\ncache.del('foo', function (err) {\n  if (err) throw err;\n  // foo was deleted\n});\n```\n\n### cache.clear([fn])\n\nClear the cache entirely, throwing away all values.\n\n```javascript\ncache.clear(function (err) {\n  if (err) throw err;\n  // cache is now clear\n});\n```\n\n### cache.getAll([fn])\n\nGet all keys and entries in cache\n\n```javascript\ncache.set('foo', { a: 'bar' }, 60, function (err, value) {\n  if (err) throw err;\n  cache.getAll(function (err, data) {\n    if (err) throw err;\n  // [{ key: 'foo', data: { a: 'bar' } }]\n});\n```\n\n## Run tests\n\n``` bash\n$ make test\n```\n\n## License\n\n(The MIT License)\n\nCopyright (c) 2013 Jonathan Brumley \u0026lt;cayasso@gmail.com\u0026gt;,  \nM Abd Aziz Alfian \u0026lt;aalfiann@gmail.com\u0026gt;\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n'Software'), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\nIN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\nCLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,\nTORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE\nSOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faalfiann%2Frecacheman-memory","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faalfiann%2Frecacheman-memory","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faalfiann%2Frecacheman-memory/lists"}