{"library":"predis","type":"library","category":null,"description":"Predis is a lightweight wrapper around the node-redis (node_redis) library that converts callback-based Redis commands to return Promises instead, simplifying asynchronous code with .then() and .catch(). Version 1.1.4 is the latest stable release; the package has not been updated since 2019 and relies on the older node_redis v0.x. It requires Node >=8. It is a minimal layer — it does not add TypeScript types, and does not support modern Redis features or the 'ioredis' alternative's cluster/sentinel support. For new projects, consider using ioredis or the native promise support in newer node-redis (v4+).","language":"javascript","status":"maintenance","version":"1.1.4","tags":["javascript","redis","deferred","asynchronous","promise"],"last_verified":"Sun Jun 07","install":[{"cmd":"npm install predis","imports":["const predis = require('predis'); const client = predis.createClient();","client.get('foo').then(val => console.log(val));","const multi = client.multi(); multi.exec((err, replies) => {});"]},{"cmd":"yarn add predis","imports":[]},{"cmd":"pnpm add predis","imports":[]}],"homepage":"https://github.com/natalan/predis#readme","github":"https://github.com/natalan/predis","docs":null,"changelog":null,"pypi":null,"npm":"predis","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}