Registry / database / ewd-redis-globals

ewd-redis-globals

JSON →
library0.5.0jsnpmunverified

Redis emulation of Global Storage database, version 0.5.0 (December 2016). Provides synchronous APIs modeled on the cache.node interface for Caché database, allowing Node.js applications to use Redis as a Global Storage database. Designed for use with ewd-qoper8 worker processes where synchronous access is safe. Requires tcp-netx TCP connector with native C++ dependencies. Not suitable for conventional async Node.js apps. Low activity, last release 2016.

npm install ewd-redis-globals
INSTALL
IMPORT
SIG · EWD-REDIS-GLOBALS
E
ewd-redis-globals
databasejavascriptv0.5.0
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.

ewd-redis-globals
var ewdRedisGlobals = require('ewd-redis-globals');
import ewdRedisGlobals from 'ewd-redis-globals';
CommonJS only; no ESM support. The package returns a constructor.
module.exports
var redisGlobals = require('ewd-redis-globals'); var db = new redisGlobals();
var db = ewdRedisGlobals.create();
The module exports a constructor function; instantiate with new.
open/close
db.open(); db.close();
ewdRedisGlobals.open();
Methods are instance methods, not static.

Shows basic instantiation, opening connection, setting and getting a global node, and closing the database.

var tcpNetx = require('tcp-netx'); var RedisGlobals = require('ewd-redis-globals'); var db = new RedisGlobals(); db.open(); try { db.set('^myGlobal', 'subNode', 'value'); var val = db.get('^myGlobal', 'subNode'); console.log('Value:', val); } finally { db.close(); }
Debug
Known issues
gotchaSynchronous APIs block the event loop; only use in worker processes (e.g., ewd-qoper8) to avoid blocking main Node.js thread.
fix
Use within ewd-qoper8 worker processes or dedicated synchronous context.
affects: >=0.0.0
gotchaRequires tcp-netx native module; requires C++ compiler to build. Installation may fail on systems without build tools.
fix
Install build-essential (Linux) or Xcode (macOS) before npm install tcp-netx.
affects: >=0.0.0
deprecatedRedis must be running on localhost:6379 by default; no built-in TLS or authentication support.
fix
Configure Redis with requirepass and use external tools if needed; the module does not support passwords.
affects: >=0.0.0
gotchaRarely updated; last release in 2016. May not work with modern Node.js versions (e.g., >=12).
fix
Test on Node 6.x as recommended; for newer versions, consider using async alternatives.
affects: >=0.0.0
Errors
Common errors & fixes
Error: Cannot find module 'tcp-netx'
tcp-netx not installed or failed to build.
fix
npm install tcp-netx (ensure C++ compiler is available).
Error: Redis connection refused
Redis server not running or not on default port 6379.
fix
Start Redis server or set custom port via options (not documented but possible).
TypeError: db.open is not a function
Missing instantiation with new.
fix
Use: var db = new RedisGlobals(); db.open();
Upgrade
Version history
0.5.0latest on npm
Audit
Dependencies
tcp-netxrequiredRequired TCP synchronous connector for Redis communication; must be installed separately
Agent activity
11 hits · last 30 days
node
10
Resources
ewd-redis-globals — npm install ewd-redis-globals · libregistry