{"id":44597,"library":"comb-redis","title":"comb-redis","description":"A small, promise-based Redis client for Node.js, version 2.0.0. Built on top of node_redis, it provides a comb promise-based interface for all Redis commands with automatic pipelining. It is a fork of then-redis and requires the comb framework to be declared elsewhere. The library is stable and safe, supporting Redis 2.6+. It offers variable-length argument lists and direct send() method.","status":"maintenance","version":"2.0.0","language":"javascript","source_language":"en","source_url":"git://github.com/ruzz311/comb-redis","tags":["javascript","redis","then","promise","promises"],"install":[{"cmd":"npm install comb-redis","lang":"bash","label":"npm"},{"cmd":"yarn add comb-redis","lang":"bash","label":"yarn"},{"cmd":"pnpm add comb-redis","lang":"bash","label":"pnpm"}],"dependencies":[],"imports":[{"note":"Package is CJS-only; ESM import not supported.","wrong":"import { createClient } from 'comb-redis';","symbol":"createClient","correct":"const redis = require('comb-redis'); const db = redis.createClient();"},{"note":"Client is exported as a named export from CJS.","wrong":"import { Client } from 'comb-redis';","symbol":"Client","correct":"const { Client } = require('comb-redis');"},{"note":"No default ESM export; use require.","wrong":"import redis from 'comb-redis';","symbol":"default import","correct":"const redis = require('comb-redis');"}],"quickstart":{"code":"const redis = require('comb-redis');\nconst db = redis.createClient();\ndb.set('my-key', 1);\ndb.incrby('my-key', 5);\ndb.get('my-key').then(value => {\n  console.log(value); // 6\n});","lang":"javascript","description":"Create a Redis client, set a key, increment it, and retrieve the value using promises."},"warnings":[{"fix":"Ensure the comb library is loaded before using comb-redis.","message":"This module assumes that comb has been declared elsewhere in your project, otherwise conflicts will occur.","severity":"gotcha","affected_versions":"all"},{"fix":"Consider using ioredis or redis for active support.","message":"The package is a fork of then-redis and may not receive updates.","severity":"deprecated","affected_versions":">=0.0.0"}],"env_vars":null,"search_vec":"'2.0.0':14 '2.6':61 'argument':67 'automat':34 'base':8,27 'built':15 'client':10 'comb':2,24,47 'comb-redi':1 'command':32 'declar':51 'direct':70 'elsewher':52 'fork':39 'framework':48 'interfac':28 'javascript':73 'length':66 'librari':54 'list':68 'method':72 'node':19 'node.js':12 'offer':63 'pipelin':35 'promis':7,26,76,77 'promise-bas':6,25 'provid':22 'redi':3,9,20,31,43,60,74 'requir':45 'safe':58 'send':71 'small':5 'stabl':56 'support':59 'then-redi':41 'top':17 'variabl':65 'variable-length':64 'version':13","created_at":"2026-06-07T12:50:54.630854+00:00","updated_at":"2026-06-07T12:50:54.630854+00:00","problems":[{"fix":"Require comb before comb-redis: require('comb'); const redis = require('comb-redis');","cause":"The comb library is not loaded before comb-redis is required.","error":"Error: comb is not defined"},{"fix":"Ensure you chain .then() on the promise returned by db.set().","cause":"Using require in CommonJS but expecting a promise that doesn't exist (e.g., forgetting the .then).","error":"TypeError: db.set(...).then is not a function"}],"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":"https://github.com/ruzz311/comb-redis","github":"git://github.com/ruzz311/comb-redis","docs":null,"changelog":null,"pypi":null,"npm":"comb-redis","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}}