Registry / storage / redis-stream-store

redis-stream-store

JSON →
library0.3.1jsnpmunverified

redis-stream-store is a Node.js library that stores streams in Redis. Version 0.3.1 is the latest and appears to be stable, though it is a niche package with low maintenance activity. It provides a simple API for storing and retrieving Node.js streams to/from Redis, using a prefix-based key scheme. It is unmaintained since 2014.

npm install redis-stream-store
INSTALL
IMPORT
SIG · REDIS-STREAM-STORE
R
redis-stream-store
storagejavascriptv0.3.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

default
var store = require('redis-stream-store')(port, host, prefix)
import store from 'redis-stream-store'
Package provides a factory function via module.exports, not a default ESM export. ESM import will fail.
get
store.get('streamName', callback)
store.get('streamName').then(...)
Does not return a promise; uses callback pattern.
put
store.put('streamName', writableStream)
store.put('streamName', readableStream)
Put expects a writable stream for storing data.

Demonstrates creating a store, reading a stream, and writing a stream to Redis.

var store = require('redis-stream-store')(6379, 'localhost', 'prefix'); store.get('myStream', function(stream) { stream.write('hello'); stream.on('data', function(data) { console.log('Received:', data.toString()); }); }); store.put('myStream', require('fs').createWriteStream('/tmp/out'));
Debug
Known issues
gotchaCallback pattern, not promise-based. Using .then() will result in undefined.
fix
Use callback function as second argument to store.get() and store.put().
affects: >=0.0.0
deprecatedPackage is abandoned; no updates since 2014. May not work with modern Node.js or Redis versions.
fix
Consider alternatives like ioredis with stream support or write custom implementation.
affects: >=0.3.1
Errors
Common errors & fixes
TypeError: store.get is not a function
The import returns a factory function; you must call it to get a store instance.
fix
Change var store = require('redis-stream-store') to var store = require('redis-stream-store')(6379, 'localhost', 'prefix')
Error: Redis connection refused
Redis server not running or host/port incorrect.
fix
Ensure Redis is running on localhost:6379 or pass correct host/port.
Upgrade
Version history
0.3.1latest on npm
Audit
Dependencies
redisrequiredRedis client required for connection
Agent activity
30 hits · last 30 days
node
26
OpenAI (training)
2
Resources
redis-stream-store — npm install redis-stream-store · libregistry