{"id":46138,"library":"redis-node","title":"redis-node","description":"A complete Redis client for Node.js (version 0.4.0). This package provides a basic asynchronous Redis client with support for most Redis commands. It is one of the earliest Redis clients for Node.js, with a simple API and event-based model. Note that this package is outdated and unmaintained; users are strongly advised to migrate to 'redis' or 'ioredis' for modern, actively maintained Redis clients with better performance, features, and security.","status":"abandoned","version":"0.4.0","language":"javascript","source_language":"en","source_url":"http://github.com/bnoguchi/redis-node","tags":["javascript","redis","node","client","redis-client","redis-node"],"install":[{"cmd":"npm install redis-node","lang":"bash","label":"npm"},{"cmd":"yarn add redis-node","lang":"bash","label":"yarn"},{"cmd":"pnpm add redis-node","lang":"bash","label":"pnpm"}],"dependencies":[],"imports":[{"note":"The package exports a default function that returns a client; no named exports.","wrong":"const redis = require('redis').createClient()","symbol":"redis","correct":"import redis from 'redis-node'"},{"note":"The client is created via a factory function, not a constructor.","wrong":"const client = new redis.Client()","symbol":"createClient","correct":"const client = redis.createClient()"},{"note":"Connection events are handled via event listeners, not callbacks.","wrong":"client.connect(callback)","symbol":"client.on('connect')","correct":"client.on('connect', callback)"}],"quickstart":{"code":"import redis from 'redis-node';\n\nconst client = redis.createClient(6379, '127.0.0.1');\n\nclient.on('connect', () => {\n  console.log('Connected to Redis');\n});\n\nclient.set('key', 'value', (err, reply) => {\n  if (err) throw err;\n  console.log(reply); // OK\n\n  client.get('key', (err, value) => {\n    if (err) throw err;\n    console.log(value); // 'value'\n    client.quit();\n  });\n});","lang":"javascript","description":"Demonstrates connecting to Redis, setting and getting a key asynchronously, and handling connection events."},"warnings":[{"fix":"Replace with 'redis' (npm install redis) and update imports.","message":"This package is unmaintained and outdated. Use the modern 'redis' or 'ioredis' packages instead for security and performance.","severity":"gotcha","affected_versions":">=0.0.1"},{"fix":"Use callback patterns or wrap with util.promisify.","message":"The client does not support promise-based API; all operations are callback-based.","severity":"gotcha","affected_versions":">=0.0.1"},{"fix":"Manually handle reconnection logic or switch to a client with auto-reconnection.","message":"No built-in reconnection or auto-recovery; connections can fail silently.","severity":"gotcha","affected_versions":">=0.0.1"}],"env_vars":null,"search_vec":"'0.4.0':11 'activ':65 'advis':56 'api':39 'asynchron':17 'base':43 'basic':16 'better':70 'client':7,19,33,68,78,81 'command':25 'complet':5 'earliest':31 'event':42 'event-bas':41 'featur':72 'ioredi':62 'javascript':75 'maintain':66 'migrat':58 'model':44 'modern':64 'node':3,77,84 'node.js':9,35 'note':45 'one':28 'outdat':50 'packag':13,48 'perform':71 'provid':14 'redi':2,6,18,24,32,60,67,76,80,83 'redis-cli':79 'redis-nod':1,82 'secur':74 'simpl':38 'strong':55 'support':21 'unmaintain':52 'user':53 'version':10","created_at":"2026-06-07T12:58:27.919829+00:00","updated_at":"2026-06-07T12:58:27.919829+00:00","problems":[{"fix":"Check the hostname and ensure Redis is running on that host.","cause":"Redis server hostname is incorrect or unreachable.","error":"Error: getaddrinfo ENOTFOUND"},{"fix":"Start Redis server (e.g., redis-server) and verify port.","cause":"Redis server is not running on the specified port or address.","error":"Error: Redis connection to 127.0.0.1:6379 failed - connect ECONNREFUSED"}],"ecosystem":"npm","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"http://github.com/bnoguchi/redis-node","github":"http://github.com/bnoguchi/redis-node","docs":null,"changelog":null,"pypi":null,"npm":"redis-node","openapi_spec":null,"status_page":null,"smithery":null,"categories":["database"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-07","next_check":"2026-09-05","install_tag":null}}