{"library":"promise-redis","type":"library","category":null,"description":"Tiny library (v0.0.5) that adds promise awareness to node_redis, the main Node.js Redis client. It is promise-library agnostic, allowing developers to use native JavaScript promises or any external promise library like Q, when, or Bluebird via a factory function. The library wraps node_redis commands to return promises instead of using callbacks, while preserving the original node_redis API and callback support for legacy code. It is very small and has no additional dependencies beyond node_redis.","language":"javascript","status":"deprecated","version":"0.0.5","tags":["javascript","redis","promise","when","q","bluebird","then"],"last_verified":"Sun Jun 07","install":[{"cmd":"npm install promise-redis","imports":["import redis from 'promise-redis';\nconst client = redis();","const client = redis.createClient();\nclient.set('key', 'val').then(console.log);","const redis = require('promise-redis')(require('q').Promise);"]},{"cmd":"yarn add promise-redis","imports":[]},{"cmd":"pnpm add promise-redis","imports":[]}],"homepage":"https://github.com/maxbrieiev/promise-redis#readme","github":"https://github.com/maxbrieiev/promise-redis","docs":null,"changelog":null,"pypi":null,"npm":"promise-redis","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}