{"id":16223648,"url":"https://github.com/lykmapipo/redis-clients","last_synced_at":"2026-02-25T16:34:36.504Z","repository":{"id":24714849,"uuid":"102271701","full_name":"lykmapipo/redis-clients","owner":"lykmapipo","description":"redis client factories for nodejs","archived":false,"fork":false,"pushed_at":"2022-12-30T17:11:23.000Z","size":342,"stargazers_count":2,"open_issues_count":12,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-25T14:18:38.259Z","etag":null,"topics":["client","lykmapipo","nodejs","publisher","pubsub","redis","redis-clients","subscriber"],"latest_commit_sha":null,"homepage":"https://github.com/lykmapipo/redis-clients","language":"JavaScript","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/lykmapipo.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":"2017-09-03T14:50:18.000Z","updated_at":"2025-01-20T20:52:11.000Z","dependencies_parsed_at":"2023-01-14T01:28:30.282Z","dependency_job_id":null,"html_url":"https://github.com/lykmapipo/redis-clients","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"purl":"pkg:github/lykmapipo/redis-clients","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lykmapipo%2Fredis-clients","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lykmapipo%2Fredis-clients/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lykmapipo%2Fredis-clients/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lykmapipo%2Fredis-clients/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lykmapipo","download_url":"https://codeload.github.com/lykmapipo/redis-clients/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lykmapipo%2Fredis-clients/sbom","scorecard":{"id":607289,"data":{"date":"2025-08-11","repo":{"name":"github.com/lykmapipo/redis-clients","commit":"0e682ccb3208e9c3a99dfc3c4ee8774bb479b612"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":1.7,"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":"Code-Review","score":0,"reason":"Found 0/20 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":"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":"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":"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":"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":"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":"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":10,"reason":"license file detected","details":["Info: project has a license file: LICENCE.md:0","Info: FSF or OSI recognized license: MIT License: LICENCE.md:0"],"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":0,"reason":"39 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-93q8-gq69-wqmw","Warn: Project is vulnerable to: GHSA-fwr7-v2mv-hh25","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275","Warn: Project is vulnerable to: GHSA-gxpj-cx7g-858c","Warn: Project is vulnerable to: GHSA-2j2x-2gpw-g8fm","Warn: Project is vulnerable to: GHSA-4q6p-r6v2-jvc5","Warn: Project is vulnerable to: GHSA-957j-59c2-j692","Warn: Project is vulnerable to: GHSA-m5pj-vjjf-4m3h","Warn: Project is vulnerable to: GHSA-j383-35pm-c5h4","Warn: Project is vulnerable to: GHSA-rm36-94g8-835r","Warn: Project is vulnerable to: GHSA-w457-6q6x-cgp9","Warn: Project is vulnerable to: GHSA-62gr-4qp9-h98f","Warn: Project is vulnerable to: GHSA-f52g-6jhx-586p","Warn: Project is vulnerable to: GHSA-2cf5-4w76-r9qv","Warn: Project is vulnerable to: GHSA-3cqr-58rm-57f8","Warn: Project is vulnerable to: GHSA-g9r4-xpmj-mj65","Warn: Project is vulnerable to: GHSA-q2c6-c6pm-g3gh","Warn: Project is vulnerable to: GHSA-765h-qjxv-5f44","Warn: Project is vulnerable to: GHSA-f2jv-r9rf-7988","Warn: Project is vulnerable to: GHSA-43f8-2h32-f4cj","Warn: Project is vulnerable to: GHSA-jf85-cpcp-j695","Warn: Project is vulnerable to: GHSA-p6mc-m468-83gw","Warn: Project is vulnerable to: GHSA-29mw-wpgm-hmr9","Warn: Project is vulnerable to: GHSA-35jh-r3h4-6jhm","Warn: Project is vulnerable to: GHSA-f8q6-p94x-37v3","Warn: Project is vulnerable to: GHSA-vh95-rmgr-6w4m","Warn: Project is vulnerable to: GHSA-xvch-5gv4-984h","Warn: Project is vulnerable to: GHSA-hj48-42vr-x3v9","Warn: Project is vulnerable to: GHSA-g6ww-v8xp-vmwg","Warn: Project is vulnerable to: GHSA-hrpp-h998-j3pp","Warn: Project is vulnerable to: GHSA-35q2-47q7-3pc3","Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw","Warn: Project is vulnerable to: GHSA-4rq4-32rv-6wp6","Warn: Project is vulnerable to: GHSA-64g7-mvw6-v9qj","Warn: Project is vulnerable to: GHSA-7p7h-4mm5-852v","Warn: Project is vulnerable to: GHSA-g78m-2chm-r7qv","Warn: Project is vulnerable to: GHSA-c4w7-xm78-47vh","Warn: Project is vulnerable to: GHSA-p9pc-299p-vxgp"],"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-21T01:53:37.123Z","repository_id":24714849,"created_at":"2025-08-21T01:53:37.123Z","updated_at":"2025-08-21T01:53:37.123Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29830287,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-25T15:41:19.027Z","status":"ssl_error","status_checked_at":"2026-02-25T15:40:47.150Z","response_time":61,"last_error":"SSL_read: 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":["client","lykmapipo","nodejs","publisher","pubsub","redis","redis-clients","subscriber"],"created_at":"2024-10-10T12:19:35.315Z","updated_at":"2026-02-25T16:34:36.474Z","avatar_url":"https://github.com/lykmapipo.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"redis-clients\n===============\n\n[![Build Status](https://travis-ci.org/lykmapipo/redis-clients.svg?branch=master)](https://travis-ci.org/lykmapipo/redis-clients)\n[![Dependency Status](https://img.shields.io/david/lykmapipo/redis-clients.svg?style=flat)](https://david-dm.org/lykmapipo/redis-clients)\n[![npm version](https://badge.fury.io/js/redis-clients.svg)](https://badge.fury.io/js/redis-clients)\n\nredis client factories for nodejs\n\n## Requirements\n- [Redis 2.8.0+](http://redis.io/)\n- [NodeJS 8.1.4+](https://nodejs.org/en/)\n\n## Installation\n```sh\n$ npm install --save redis-clients\n```\n\n## Usage\n\n```javascript\n//initialize redis-clients with default options\nconst redis = require('redis-clients')([options]);\n\n//obtain normal redis client\nconst client = redis.client();\n\n//set data\nclient.set('abc:1', 1);\nclient.set('abc:2', 2);\nclient.set('abc:3', 3);\n\n//count keys based on pattern\nredis.count('abc:*', function(error, count){\n    ...\n});\n\n//count keys based on pattern\nredis.count('abc:*', 'x:*', function(error, counts){\n    ...\n});\n\n//obtain pub/sub clients\nconst { publisher, subscriber } = redis.pubsub();\n\n//clear users data\nredis.clear('users*', function(error, response){\n    ...\n});\n\n//clear all data\nredis.clear(function(error, response){\n    ...\n});\n\n//reset and quit all clients\nredis.quit();\n```\n\n## Options\n- `prefix:String` - redis key prefix. default to `r`\n- `separator:String` - redis key separator. default to `:`\n- `redis:Object|String` - [redis](https://github.com/NodeRedis/node_redis#rediscreateclient) connections options or connection string.\n\nTo initialize `redis` with custom options use\n\n```js\nconst redis = require('redis-clients')({\n    prefix:'q',\n    separator:'-',\n    redis: {\n    port: 6379,\n    host: '127.0.0.1'\n  }\n});\n\n...\n\nor \n\nconst redis = require('redis-clients')({\n    prefix:'q',\n    separator:'-',\n    redis: 'redis://localhost:6379'\n});\n\n```\n\n## API\n\n### `createClient([options:Object]):Object`\nCreate a new instance of redis client\n\n```js\nconst redis = require('redis-clients')();\nconst client = redis.createClient([options]);\n\n...\n\n```\n\n### `pubsub():{publisher:Object, subscriber:Object}`\nObtain existing or create new instances of publisher and subscriber redis clients\n\n```js\nconst redis = require('redis-clients')();\nconst { publisher, subscriber } = redis.pubsub();\n\n...\n\n```\n\n### `client():Object`\nObtain existing or create new instance of redis client\n\n```js\nconst redis = require('redis-clients')();\nconst client = redis.client();\n\n...\n\n```\n\n### `multi():Object`\nCreate new instance of redis multi command object\n\n```js\nconst redis = require('redis-clients')();\nconst client = redis.multi();\n\n...\n\n```\n\n### `info(done:Function):Object`\nObtain informations of the current redis server.\n\n```js\nconst redis = require('redis-clients')();\nredis.info(function(error, info){\n    ...\n});\n\n```\n\n### `key(...args):String`\nBuild redis storage key using `prefix` and `separator` options\n\n```js\nconst redis = require('redis-clients')();\n\n//generate random key\nconst key = redis.key();\nexpect(key).to.exist;\nexpect(key.split(':')).to.have.length(2);\n\nconst key = redis.key('ab');\nexpect(key).to.be.equal('r:ab');\n\nconst key = redis.key(['users', 'ab']);\nexpect(key).to.be.equal('r:users:ab');\n\nconst key = redis.key('users', 'likes', 'vegetables');\nexpect(key).to.be.equal('r:users:likes:vegetables');\n\n...\n\n```\n\n### `clear(pattern:String,[done:Function]):Array[String\u003e`\nclear data using specified pattern. if pattern not provided all data will be deleted\n\n```js\nconst redis = require('redis-clients')();\n\n//clear all data\nredis.clear(function(error, responses){\n    ...\n});\n\n//clear all key 'users*'\nredis.clear('users',function(error, responses){\n    ...\n});\n\n...\n\n```\n\n### `reset()`\nReset current state of redis\n\n```js\nconst redis = require('redis-clients')();\nredis.reset();\n\n...\n\n```\n\n### `count(pattern:String, done:Function)`\nCount(or obtain size) of keys based on the specified pattern. \nIf no pattern specified all keys will be counted.\n\n```js\nconst redis = require('redis-clients')();\nredis.count('abc:*', function(error, count){\n    ...\n});\n\n...\n\n```\n\n## Testing\n* Clone this repository\n\n* Install all development dependencies\n```sh\n$ npm install\n```\n\n* Then run test\n```sh\n$ npm test\n```\n\n## Contribute\nIt will be nice, if you open an issue first so that we can know what is going on, then, fork this repo and push in your ideas. Do not forget to add a bit of test(s) of what value you adding.\n\n## Licence\n\nThe MIT License (MIT)\n\nCopyright (c) 2017 lykmapipo \u0026 Contributors\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flykmapipo%2Fredis-clients","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flykmapipo%2Fredis-clients","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flykmapipo%2Fredis-clients/lists"}