{"id":25424412,"url":"https://github.com/moaxaca/async-redis","last_synced_at":"2025-04-04T20:16:02.794Z","repository":{"id":19297815,"uuid":"86026675","full_name":"moaxaca/async-redis","owner":"moaxaca","description":"First class async \u0026 promise support for redis.","archived":false,"fork":false,"pushed_at":"2023-01-06T19:53:41.000Z","size":435,"stargazers_count":168,"open_issues_count":14,"forks_count":21,"subscribers_count":7,"default_branch":"main","last_synced_at":"2024-10-29T23:19:23.120Z","etag":null,"topics":["async","async-redis","database","node-redis","nodejs","promise-support","redis"],"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/moaxaca.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":"2017-03-24T04:20:08.000Z","updated_at":"2024-08-13T08:28:52.000Z","dependencies_parsed_at":"2022-08-07T09:15:10.346Z","dependency_job_id":null,"html_url":"https://github.com/moaxaca/async-redis","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moaxaca%2Fasync-redis","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moaxaca%2Fasync-redis/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moaxaca%2Fasync-redis/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moaxaca%2Fasync-redis/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/moaxaca","download_url":"https://codeload.github.com/moaxaca/async-redis/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247242681,"owners_count":20907134,"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":["async","async-redis","database","node-redis","nodejs","promise-support","redis"],"created_at":"2025-02-16T23:16:07.832Z","updated_at":"2025-04-04T20:16:02.771Z","avatar_url":"https://github.com/moaxaca.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"Async Redis\n===========================\n[![ci](https://github.com/moaxaca/async-redis/actions/workflows/ci.yaml/badge.svg)](https://github.com/moaxaca/async-redis/actions/workflows/ci.yaml)\n[![npm](https://img.shields.io/npm/v/async-redis.svg)](https://www.npmjs.com/package/async-redis)\n[![npm](https://img.shields.io/npm/dm/async-redis.svg)](https://www.npmjs.com/package/async-redis)\n[![license](https://img.shields.io/github/license/mashape/apistatus.svg)](https://github.com/moaxaca/async-redis/blob/master/LICENSE)\n[![Coverage Status](https://coveralls.io/repos/github/moaxaca/async-redis/badge.svg)](https://coveralls.io/github/moaxaca/async-redis)\n[![Maintainability](https://api.codeclimate.com/v1/badges/141c7e0d80d10b10c42a/maintainability)](https://codeclimate.com/github/moaxaca/async-redis/maintainability)\n[![Known Vulnerabilities](https://snyk.io/test/github/moaxaca/async-redis/badge.svg?targetFile=package.json)](https://snyk.io/test/github/moaxaca/async-redis?targetFile=package.json)\n\nLight weight wrapper over the [node_redis](https://github.com/NodeRedis/node_redis) library with first class async \u0026 promise support. \n\n## Installation\nTo install the stable version:\n``` \nnpm install --save async-redis\n```\n\n## Usage Example\n\n### Creating Connection\n```js\nconst asyncRedis = require(\"async-redis\");\nconst client = asyncRedis.createClient();\n\nclient.on(\"error\", function (err) {\n    console.log(\"Error \" + err);\n});\n\nconst asyncBlock = async () =\u003e {\n  await client.set(\"string key\", \"string val\");\n  const value = await client.get(\"string key\");\n  console.log(value);\n  await client.flushall(\"string key\");\n};\n```\n\n### Decorating Existing Connections\n```js\nconst redis = require(\"redis\");\nconst client = redis.createClient();\nconst asyncRedis = require(\"async-redis\");\nconst asyncRedisClient = asyncRedis.decorate(client);\n```\n\n## API Information\nThis library does very little modification to the api of node_redis. \nIt simply appends a promise resolving/rejecting callback for every command. \n\nFor information on redis commands and configuration visit node_redis \n[docs](http://redis.js.org). \n\n## License\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmoaxaca%2Fasync-redis","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmoaxaca%2Fasync-redis","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmoaxaca%2Fasync-redis/lists"}