{"id":45597,"library":"node-stream-cache","title":"node-stream-cache","description":"A Node.js package that allows streaming data into a Redis cache and retrieving it as a stream. Version 0.0.4 is the latest release; no recent updates indicate active maintenance. It provides a simple API to cache the output of a function that returns a readable stream, with a configurable TTL. Unlike more comprehensive caching solutions, this package focuses solely on stream-based Redis caching with a minimal interface.","status":"abandoned","version":"0.0.4","language":"javascript","source_language":"en","source_url":"git://github.com/SpiderStrategies/node-stream-cache","tags":["javascript","cache","redis","stream"],"install":[{"cmd":"npm install node-stream-cache","lang":"bash","label":"npm"},{"cmd":"yarn add node-stream-cache","lang":"bash","label":"yarn"},{"cmd":"pnpm add node-stream-cache","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"Redis client required for cache operations","package":"redis","optional":false}],"imports":[{"note":"This package does not support ES module imports; use CommonJS require.","wrong":"import Cache from 'node-stream-cache'","symbol":"Cache","correct":"var Cache = require('node-stream-cache')"}],"quickstart":{"code":"var Cache = require('node-stream-cache');\nvar cacher = new Cache();\nvar request = require('request');\nvar JSONStream = require('JSONStream');\n\nvar work = function () {\n  var parser = JSONStream.parse(['rows', true]);\n  var req = request({url: 'http://isaacs.couchone.com/registry/_all_docs'});\n  req.pipe(parser);\n  return parser;\n};\n\nvar done = function (stream) {\n  stream.pipe(require('event-stream').mapSync(function (data) {\n    console.error(data);\n    return data;\n  }));\n};\n\ncacher.process('docs', work, done, 60);","lang":"javascript","description":"Demonstrates caching a request stream in Redis with a 60-second TTL."},"warnings":[{"fix":"Consider alternatives like ioredis or redis-stream.","message":"Package has not been updated since 2013 and uses outdated API patterns.","severity":"deprecated","affected_versions":">=0.0.0"},{"fix":"Ensure Redis server is accessible before using this package.","message":"Requires a running Redis instance; no fallback if Redis is unavailable.","severity":"gotcha","affected_versions":">=0.0.0"}],"env_vars":null,"search_vec":"'0.0.4':23 'activ':32 'allow':9 'api':38 'base':67 'cach':4,15,40,58,69,75 'comprehens':57 'configur':53 'data':11 'focus':62 'function':45 'indic':31 'interfac':73 'javascript':74 'latest':26 'mainten':33 'minim':72 'node':2 'node-stream-cach':1 'node.js':6 'output':42 'packag':7,61 'provid':35 'readabl':49 'recent':29 'redi':14,68,76 'releas':27 'retriev':17 'return':47 'simpl':37 'sole':63 'solut':59 'stream':3,10,21,50,66,77 'stream-bas':65 'ttl':54 'unlik':55 'updat':30 'version':22","created_at":"2026-06-07T12:55:47.266495+00:00","updated_at":"2026-06-07T12:55:47.266495+00:00","problems":[{"fix":"Start Redis server locally or provide correct connection settings.","cause":"Redis server is not running or not reachable.","error":"Error: Redis connection to 127.0.0.1:6379 failed - connect ECONNREFUSED"},{"fix":"Ensure the work function returns a valid stream object.","cause":"The 'work' function must return a readable stream; it may be returning undefined.","error":"TypeError: stream 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":"git://github.com/SpiderStrategies/node-stream-cache","github":"git://github.com/SpiderStrategies/node-stream-cache","docs":null,"changelog":null,"pypi":null,"npm":"node-stream-cache","openapi_spec":null,"status_page":null,"smithery":null,"categories":["storage"],"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}}